#8338C2#8338C2
#8338C2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.2% C 0.205 H 305.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).
Color values
| HEX | #8338C2 |
|---|---|
| RGB | rgb(131, 56, 194) |
| HSL | hsl(273, 55%, 49%) |
| HSV | hsv(273, 71%, 76%) |
| CMYK | cmyk(32.5%, 71.1%, 0%, 23.9%) |
| CIE-LAB | lab(40.49, 56.41, -59.11) |
| CIE-LCH | lch(40.49, 81.71, 313.66°) |
| OKLab | oklab(51.21% 0.1175 -0.168) |
| OKLCH | oklch(51.21% 0.205 305) |
| XYZ | xyz(20.5097, 11.5488, 52.1771) |
| Luminance | 0.1155 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.87
Blueviolet
#8A2BE2
ΔE00 4.36
Darkviolet
#9400D3
ΔE00 4.93
Purply
#983FB2
ΔE00 5.87
Violet (survey)
#9A0EEA
ΔE00 6.09
Bluey Purple
#6241C7
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8338C2 #77C238
analogous
#3E38C2 #8338C2 #C238BC
triadic
#8338C2 #C28338 #38C283
tetradic
#8338C2 #C23E38 #77C238 #38BCC2
square
#8338C2 #C23E38 #77C238 #38BCC2
split-complementary
#8338C2 #BCC238 #38C23E
monochromatic
#431D63 #632A93 #8338C2 #A065D2 #BE94E0
Accessibility & contrast
On white
6.34
#8338C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#8338C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8338C2
6.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8338C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8338C2 | 1.00 | 6.34 | 3.31 | 6.34 |
| #FFFFFF | 6.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#775879
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8338c2; /* rgb */ color: rgb(131, 56, 194); /* oklch */ color: oklch(51.2% 0.205 305.0);
Tailwind
colors: {
custom: {
50: '#ac75d5',
500: '#8338c2',
950: '#000000',
},
}SCSS
$custom: #8338c2; $custom-light: #ac75d5; $custom-dark: #000000;
JSON
{
"hex": "#8338c2",
"rgb": {
"r": 131,
"g": 56,
"b": 194
},
"hsl": {
"h": 272.609,
"s": 55.2,
"l": 49.02
},
"oklch": {
"l": 0.51206,
"c": 0.20504,
"h": 305
},
"luminance": 0.11549
}Semantic roles & 50–950 ramp
primary
#8338C2
secondary
#A8CB8A
accent
#DF498D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83