#8338CF#8338CF
#8338CF is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.2% C 0.218 H 301.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #8338CF |
|---|---|
| RGB | rgb(131, 56, 207) |
| HSL | hsl(270, 61%, 52%) |
| HSV | hsv(270, 73%, 81%) |
| CMYK | cmyk(36.7%, 72.9%, 0%, 18.8%) |
| CIE-LAB | lab(41.47, 59.45, -65.07) |
| CIE-LCH | lch(41.47, 88.14, 312.41°) |
| OKLab | oklab(52.2% 0.1151 -0.1856) |
| OKLCH | oklch(52.2% 0.218 301.8) |
| XYZ | xyz(22.0340, 12.1585, 60.2054) |
| Luminance | 0.1216 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 2.75
Darkorchid
#9932CC
ΔE00 3.97
Bluish Purple
#703BE7
ΔE00 4.55
Darkviolet
#9400D3
ΔE00 4.84
Violet (survey)
#9A0EEA
ΔE00 4.97
Burple
#6832E3
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8338CF #84CF38
analogous
#3839CF #8338CF #CF38CF
triadic
#8338CF #CF8338 #38CF83
tetradic
#8338CF #CF3839 #84CF38 #38CFCF
square
#8338CF #CF3839 #84CF38 #38CFCF
split-complementary
#8338CF #CFCF38 #39CF38
monochromatic
#461B71 #6427A3 #8338CF #A269DB #C09BE7
Accessibility & contrast
On white
6.12
#8338CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#8338CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8338CF
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8338CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8338CF | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#735E81
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8338cf; /* rgb */ color: rgb(131, 56, 207); /* oklch */ color: oklch(52.2% 0.218 301.8);
Tailwind
colors: {
custom: {
50: '#ad75df',
500: '#8338cf',
950: '#000000',
},
}SCSS
$custom: #8338cf; $custom-light: #ad75df; $custom-dark: #000000;
JSON
{
"hex": "#8338cf",
"rgb": {
"r": 131,
"g": 56,
"b": 207
},
"hsl": {
"h": 269.801,
"s": 61.134,
"l": 51.569
},
"oklch": {
"l": 0.52204,
"c": 0.21837,
"h": 301.8
},
"luminance": 0.12159
}Semantic roles & 50–950 ramp
primary
#8338CF
secondary
#B2D390
accent
#E44494
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83