Colour reference
Electric Violet
#8338ec
- RGB
- rgb(131 56 236)
- HSL
- 265°, 83%, 57%
- OKLCh
- 54.6% 0.248 295.9
Electric Violet in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #8338ec | |
|---|---|---|
| RGB | rgb(131 56 236) | |
| RGB legacy | rgb(131, 56, 236) | |
| RGB percent | rgb(51.37% 21.96% 92.55%) | |
| HSL | hsl(265 82.6% 57.3%) | |
| HSL legacy | hsl(265, 82.6%, 57.3%) | |
| HSV / HSB | hsv(265, 76.3%, 92.5%) | |
| HWB | hwb(265 22% 7.5%) | |
| Nearest name | blueviolet (approx.) | |
| CMYK | cmyk(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.
| OKLCh | oklch(54.577% 0.24783 295.879)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(54.577% 0.10817 -0.22298) | |
| CIE LCh | lch(42.717% 98.692 306.622) | |
| CIE Lab | lab(42.717% 58.873 -79.209) | |
| Display P3 | color(display-p3 0.4774 0.2368 0.8914) | |
| Rec. 2020 | color(rec2020 0.4235 0.2143 0.8714) | |
| srgb-linear | color(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 — sRGB | vec3(0.514, 0.22, 0.925)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.227, 0.04, 0.839)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.514, 0.22, 0.925, 1.0) | |
| GLSL vec4 — linear | vec4(0.227, 0.04, 0.839, 1.0) | |
| GLSL ivec3 | ivec3(131, 56, 236) | |
| HLSL float3 — sRGB | float3(0.514, 0.22, 0.925) | |
| HLSL float3 — linear | float3(0.227, 0.04, 0.839) | |
| HLSL float4 — sRGB | float4(0.514, 0.22, 0.925, 1.0) | |
| HLSL half4 — sRGB | half4(0.514, 0.22, 0.925, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.514, 0.22, 0.925) | |
| WGSL vec4f — sRGB | vec4f(0.514, 0.22, 0.925, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.227, 0.04, 0.839) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new 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 Color32 | new Color32(131, 56, 236, 255) | |
| Unreal FLinearColor | FLinearColor(0.227f, 0.0395f, 0.8388f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(131, 56, 236, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.514, 0.22, 0.925, 1) | |
| Flutter Color | Color(0xFF8338EC)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(131, 56, 236) | |
| SwiftUI Color | Color(red: 0.514, green: 0.22, blue: 0.925) | |
| UIKit UIColor | UIColor(red: 0.514, green: 0.22, blue: 0.925, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x8338EC | |
|---|---|---|
| 0x hex (ARGB) | 0xFF8338EC | |
| Array 0–1 | [0.514, 0.22, 0.925] | |
| Array 0–255 | [131, 56, 236] | |
| Decimal integer | 8599788 |
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.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Electric Violet on white | 5.61:1 | AA | Lc 77 | Body text, 18px and up |
| Electric Violet on black | 3.74:1 | AA Large | Lc 25 | Not 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.027darkorchidΔEok 0.068darkvioletΔEok 0.070slateblueΔEok 0.085mediumslateblueΔEok 0.089mediumpurpleΔEok 0.121