#6338F2#6338F2
#6338F2 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.0% C 0.255 H 283.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #6338F2 |
|---|---|
| RGB | rgb(99, 56, 242) |
| HSL | hsl(254, 88%, 58%) |
| HSV | hsv(254, 77%, 95%) |
| CMYK | cmyk(59.1%, 76.9%, 0%, 5.1%) |
| CIE-LAB | lab(41.04, 63.81, -85.87) |
| CIE-LCH | lch(41.04, 106.99, 306.61°) |
| OKLab | oklab(52.04% 0.0605 -0.2475) |
| OKLCH | oklch(52.04% 0.255 283.7) |
| XYZ | xyz(22.5818, 11.8903, 85.0923) |
| Luminance | 0.1189 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.49
Purpley Blue
#5F34E7
ΔE00 1.91
Bluish Purple
#703BE7
ΔE00 2.07
Burple
#6832E3
ΔE00 2.38
Purplish Blue
#601EF9
ΔE00 3.47
Light Royal Blue
#3A2EFE
ΔE00 4.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6338F2 #C7F238
analogous
#386AF2 #6338F2 #C038F2
triadic
#6338F2 #F26338 #38F263
tetradic
#6338F2 #F2386A #C7F238 #38F2C0
square
#6338F2 #F2386A #C7F238 #38F2C0
split-complementary
#6338F2 #F2C038 #6AF238
monochromatic
#2E0BA5 #3F0FDE #6338F2 #9071F6 #BDABFA
Accessibility & contrast
On white
6.22
#6338F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#6338F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6338F2
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6338F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6338F2 | 1.00 | 6.22 | 3.38 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066F7
Deuteranopia (green-blind)
#005BEF
Tritanopia (blue-blind)
#006F94
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #6338f2; /* rgb */ color: rgb(99, 56, 242); /* oklch */ color: oklch(52.0% 0.255 283.7);
Tailwind
colors: {
custom: {
50: '#9f74f8',
500: '#6338f2',
950: '#000000',
},
}SCSS
$custom: #6338f2; $custom-light: #9f74f8; $custom-dark: #000000;
JSON
{
"hex": "#6338f2",
"rgb": {
"r": 99,
"g": 56,
"b": 242
},
"hsl": {
"h": 253.871,
"s": 87.736,
"l": 58.431
},
"oklch": {
"l": 0.52039,
"c": 0.25483,
"h": 283.7
},
"luminance": 0.11892
}Semantic roles & 50–950 ramp
primary
#6338F2
secondary
#D7E89E
accent
#FE2ACD
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85