#6038F2#6038F2
#6038F2 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.8% C 0.255 H 282.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #6038F2 |
|---|---|
| RGB | rgb(96, 56, 242) |
| HSL | hsl(253, 88%, 58%) |
| HSV | hsv(253, 77%, 95%) |
| CMYK | cmyk(60.3%, 76.9%, 0%, 5.1%) |
| CIE-LAB | lab(40.77, 63.48, -86.32) |
| CIE-LCH | lch(40.77, 107.15, 306.33°) |
| OKLab | oklab(51.79% 0.0562 -0.2489) |
| OKLCH | oklch(51.79% 0.255 282.7) |
| XYZ | xyz(22.2601, 11.7244, 85.0772) |
| Luminance | 0.1173 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.51
Purpley Blue
#5F34E7
ΔE00 1.77
Bluish Purple
#703BE7
ΔE00 2.37
Burple
#6832E3
ΔE00 2.43
Purplish Blue
#601EF9
ΔE00 3.41
Light Royal Blue
#3A2EFE
ΔE00 3.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6038F2 #CAF238
analogous
#386DF2 #6038F2 #BD38F2
triadic
#6038F2 #F26038 #38F260
tetradic
#6038F2 #F2386D #CAF238 #38F2BD
square
#6038F2 #F2386D #CAF238 #38F2BD
split-complementary
#6038F2 #F2BD38 #6DF238
monochromatic
#2C0BA5 #3B0FDE #6038F2 #8E71F6 #BCABFA
Accessibility & contrast
On white
6.28
#6038F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#6038F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6038F2
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6038F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6038F2 | 1.00 | 6.28 | 3.35 | 6.28 |
| #FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066F7
Deuteranopia (green-blind)
#005AEF
Tritanopia (blue-blind)
#006F94
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #6038f2; /* rgb */ color: rgb(96, 56, 242); /* oklch */ color: oklch(51.8% 0.255 282.7);
Tailwind
colors: {
custom: {
50: '#9e74f8',
500: '#6038f2',
950: '#000000',
},
}SCSS
$custom: #6038f2; $custom-light: #9e74f8; $custom-dark: #000000;
JSON
{
"hex": "#6038f2",
"rgb": {
"r": 96,
"g": 56,
"b": 242
},
"hsl": {
"h": 252.903,
"s": 87.736,
"l": 58.431
},
"oklch": {
"l": 0.51788,
"c": 0.25521,
"h": 282.7
},
"luminance": 0.11726
}Semantic roles & 50–950 ramp
primary
#6038F2
secondary
#D8E89E
accent
#FE2AD0
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85