#6142EF#6142EF
#6142EF is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.243 H 282.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #6142EF |
|---|---|
| RGB | rgb(97, 66, 239) |
| HSL | hsl(251, 84%, 60%) |
| HSV | hsv(251, 72%, 94%) |
| CMYK | cmyk(59.4%, 72.4%, 0%, 6.3%) |
| CIE-LAB | lab(42.26, 57.97, -82.18) |
| CIE-LCH | lch(42.26, 100.57, 305.20°) |
| OKLab | oklab(52.77% 0.0521 -0.2369) |
| OKLCH | oklch(52.77% 0.243 282.4) |
| XYZ | xyz(22.4531, 12.6683, 82.9067) |
| Luminance | 0.1267 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 0.43
Bluish Purple
#703BE7
ΔE00 2.60
Purpley Blue
#5F34E7
ΔE00 3.26
Burple
#6832E3
ΔE00 3.78
Light Royal Blue
#3A2EFE
ΔE00 5.07
Bluey Purple
#6241C7
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6142EF #D0EF42
analogous
#427AEF #6142EF #B742EF
triadic
#6142EF #EF6142 #42EF61
tetradic
#6142EF #EF427A #D0EF42 #42EFB7
square
#6142EF #EF427A #D0EF42 #42EFB7
split-complementary
#6142EF #EFB742 #7AEF42
monochromatic
#2A0EA8 #3813E1 #6142EF #907AF4 #BFB3F9
Accessibility & contrast
On white
5.94
#6142EF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#6142EF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6142EF
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6142EF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6142EF | 1.00 | 5.94 | 3.53 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069F4
Deuteranopia (green-blind)
#005EEC
Tritanopia (blue-blind)
#007295
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #6142ef; /* rgb */ color: rgb(97, 66, 239); /* oklch */ color: oklch(52.8% 0.243 282.4);
Tailwind
colors: {
custom: {
50: '#9d7af6',
500: '#6142ef',
950: '#000000',
},
}SCSS
$custom: #6142ef; $custom-light: #9d7af6; $custom-dark: #000000;
JSON
{
"hex": "#6142ef",
"rgb": {
"r": 97,
"g": 66,
"b": 239
},
"hsl": {
"h": 250.751,
"s": 84.39,
"l": 59.804
},
"oklch": {
"l": 0.52767,
"c": 0.24257,
"h": 282.4
},
"luminance": 0.1267
}Semantic roles & 50–950 ramp
primary
#6142EF
secondary
#DCE8A5
accent
#FB2DD6
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85