Colour reference

Electric Violet

#8338ec

RGB
rgb(131 56 236)
HSL
265°, 83%, 57%
OKLCh
54.6% 0.248 295.9

Open in the picker

Electric Violet in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#8338ec
RGBrgb(131 56 236)
RGB legacyrgb(131, 56, 236)
RGB percentrgb(51.37% 21.96% 92.55%)
HSLhsl(265 82.6% 57.3%)
HSL legacyhsl(265, 82.6%, 57.3%)
HSV / HSBhsv(265, 76.3%, 92.5%)
HWBhwb(265 22% 7.5%)
Nearest nameblueviolet (approx.)
CMYKcmyk(44.5%, 76.3%, 0%, 7.5%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(54.577% 0.24783 295.879)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(54.577% 0.10817 -0.22298)
CIE LChlch(42.717% 98.692 306.622)
CIE Lablab(42.717% 58.873 -79.209)
Display P3color(display-p3 0.4774 0.2368 0.8914)
Rec. 2020color(rec2020 0.4235 0.2143 0.8714)
srgb-linearcolor(srgb-linear 0.227 0.0395 0.8388)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.2591 0.1371 0.8064)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(0.514, 0.22, 0.925)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.227, 0.04, 0.839)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.514, 0.22, 0.925, 1.0)
GLSL vec4 — linearvec4(0.227, 0.04, 0.839, 1.0)
GLSL ivec3ivec3(131, 56, 236)
HLSL float3 — sRGBfloat3(0.514, 0.22, 0.925)
HLSL float3 — linearfloat3(0.227, 0.04, 0.839)
HLSL float4 — sRGBfloat4(0.514, 0.22, 0.925, 1.0)
HLSL half4 — sRGBhalf4(0.514, 0.22, 0.925, 1.0)
WGSL vec3f — sRGBvec3f(0.514, 0.22, 0.925)
WGSL vec4f — sRGBvec4f(0.514, 0.22, 0.925, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.227, 0.04, 0.839)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew Color(0.514f, 0.22f, 0.925f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(131, 56, 236, 255)
Unreal FLinearColorFLinearColor(0.227f, 0.0395f, 0.8388f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(131, 56, 236, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.514, 0.22, 0.925, 1)
Flutter ColorColor(0xFF8338EC)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(131, 56, 236)
SwiftUI ColorColor(red: 0.514, green: 0.22, blue: 0.925)
UIKit UIColorUIColor(red: 0.514, green: 0.22, blue: 0.925, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0x8338EC
0x hex (ARGB)0xFF8338EC
Array 0–1[0.514, 0.22, 0.925]
Array 0–255[131, 56, 236]
Decimal integer8599788

Contrast and accessibility

WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.

PairingWCAG 2 ratioLevelAPCASuitable for
Electric Violet on white5.61:1AALc 77Body text, 18px and up
Electric Violet on black3.74:1AA LargeLc 25Not usable for text

Electric Violet text on a white background

Electric Violet text on a black background

White text on Electric Violet

Black text on Electric Violet

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#f9f3ff
  • 100#f0e7ff
  • 200#e0d2ff
  • 300#cdb5ff
  • 400#b58dff
  • 500#9d5aff
  • 600#833dea
  • 700#6c24c8
  • 800#5809a9
  • 900#47008f
  • 950#2a005d

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#9562f2
  • Tint 2#a885f7
  • Tint 3#bca4fb
  • Tint 4#d1c3fe
  • Tint 5#e8e1ff
  • Shade 1#652ab9
  • Shade 2#491c89
  • Shade 3#2f0f5b
  • Shade 4#170531
  • Shade 5#03010d

Colours that work with Electric Violet

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #6d7900
  • #b15100
  • #00876d
  • #2c59fd
  • #b30ebb

Closest CSS names

  • bluevioletΔEok 0.027
  • darkorchidΔEok 0.068
  • darkvioletΔEok 0.070
  • slateblueΔEok 0.085
  • mediumslateblueΔEok 0.089
  • mediumpurpleΔEok 0.121