#6042F3#6042F3
#6042F3 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.1% C 0.247 H 281.6°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #6042F3 |
|---|---|
| RGB | rgb(96, 66, 243) |
| HSL | hsl(250, 88%, 61%) |
| HSV | hsv(250, 73%, 95%) |
| CMYK | cmyk(60.5%, 72.8%, 0%, 4.7%) |
| CIE-LAB | lab(42.54, 59.00, -83.98) |
| CIE-LCH | lch(42.54, 102.63, 305.09°) |
| OKLab | oklab(53.06% 0.0499 -0.2422) |
| OKLCH | oklch(53.06% 0.247 281.6) |
| XYZ | xyz(22.9447, 12.8526, 86.0484) |
| Luminance | 0.1285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 0.73
Bluish Purple
#703BE7
ΔE00 2.89
Purpley Blue
#5F34E7
ΔE00 3.53
Burple
#6832E3
ΔE00 4.09
Light Royal Blue
#3A2EFE
ΔE00 5.03
Purplish Blue
#601EF9
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6042F3 #D5F342
analogous
#427DF3 #6042F3 #B842F3
triadic
#6042F3 #F36042 #42F360
tetradic
#6042F3 #F3427D #D5F342 #42F3B8
square
#6042F3 #F3427D #D5F342 #42F3B8
split-complementary
#6042F3 #F3B842 #7DF342
monochromatic
#270BAF #340FE9 #6042F3 #907CF7 #C1B5FA
Accessibility & contrast
On white
5.88
#6042F3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#6042F3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6042F3
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6042F3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6042F3 | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AF8
Deuteranopia (green-blind)
#005EF0
Tritanopia (blue-blind)
#007497
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #6042f3; /* rgb */ color: rgb(96, 66, 243); /* oklch */ color: oklch(53.1% 0.247 281.6);
Tailwind
colors: {
custom: {
50: '#9d7af8',
500: '#6042f3',
950: '#000000',
},
}SCSS
$custom: #6042f3; $custom-light: #9d7af8; $custom-dark: #000000;
JSON
{
"hex": "#6042f3",
"rgb": {
"r": 96,
"g": 66,
"b": 243
},
"hsl": {
"h": 250.169,
"s": 88.06,
"l": 60.588
},
"oklch": {
"l": 0.53056,
"c": 0.24726,
"h": 281.6
},
"luminance": 0.12854
}Semantic roles & 50–950 ramp
primary
#6042F3
secondary
#DFEAA7
accent
#E501BE
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85