#6338C2#6338C2
#6338C2 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.201 H 291.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #6338C2 |
|---|---|
| RGB | rgb(99, 56, 194) |
| HSL | hsl(259, 55%, 49%) |
| HSV | hsv(259, 71%, 76%) |
| CMYK | cmyk(49%, 71.1%, 0%, 23.9%) |
| CIE-LAB | lab(36.70, 50.62, -65.45) |
| CIE-LCH | lch(36.70, 82.74, 307.72°) |
| OKLab | oklab(47.67% 0.0723 -0.1878) |
| OKLCH | oklch(47.67% 0.201 291) |
| XYZ | xyz(16.2946, 9.3754, 51.9795) |
| Luminance | 0.0938 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.26
Blurple
#5539CC
ΔE00 2.53
Blue With A Hint Of Purple
#533CC6
ΔE00 2.73
Purple Blue
#5D21D0
ΔE00 4.17
Burple
#6832E3
ΔE00 4.28
Ocean Blue
#4F42B5
ΔE00 4.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6338C2 #97C238
analogous
#3852C2 #6338C2 #A838C2
triadic
#6338C2 #C26338 #38C263
tetradic
#6338C2 #C23852 #97C238 #38C2A8
square
#6338C2 #C23852 #97C238 #38C2A8
split-complementary
#6338C2 #C2A838 #52C238
monochromatic
#331D63 #4B2A93 #6338C2 #8765D2 #AC94E0
Accessibility & contrast
On white
7.30
#6338C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#6338C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6338C2
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6338C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6338C2 | 1.00 | 7.30 | 2.88 | 7.30 |
| #FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#445C79
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #6338c2; /* rgb */ color: rgb(99, 56, 194); /* oklch */ color: oklch(47.7% 0.201 291.0);
Tailwind
colors: {
custom: {
50: '#9872d5',
500: '#6338c2',
950: '#000000',
},
}SCSS
$custom: #6338c2; $custom-light: #9872d5; $custom-dark: #000000;
JSON
{
"hex": "#6338c2",
"rgb": {
"r": 99,
"g": 56,
"b": 194
},
"hsl": {
"h": 258.696,
"s": 55.2,
"l": 49.02
},
"oklch": {
"l": 0.47666,
"c": 0.20121,
"h": 291
},
"luminance": 0.09376
}Semantic roles & 50–950 ramp
primary
#6338C2
secondary
#B7CB8A
accent
#DF49B0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83