#6142C8#6142C8
#6142C8 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.197 H 287.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).
Color values
| HEX | #6142C8 |
|---|---|
| RGB | rgb(97, 66, 200) |
| HSL | hsl(254, 55%, 52%) |
| HSV | hsv(254, 67%, 78%) |
| CMYK | cmyk(51.5%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(38.91, 46.68, -65.35) |
| CIE-LCH | lch(38.91, 80.30, 305.54°) |
| OKLab | oklab(49.35% 0.0592 -0.1876) |
| OKLCH | oklch(49.35% 0.197 287.5) |
| XYZ | xyz(17.3002, 10.6071, 55.7682) |
| Luminance | 0.1061 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.34
Blue With A Hint Of Purple
#533CC6
ΔE00 2.54
Blurple
#5539CC
ΔE00 2.72
Ocean Blue
#4F42B5
ΔE00 3.93
Burple
#6832E3
ΔE00 4.39
Purpley Blue
#5F34E7
ΔE00 4.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6142C8 #A9C842
analogous
#4266C8 #6142C8 #A442C8
triadic
#6142C8 #C86142 #42C861
tetradic
#6142C8 #C84266 #A9C842 #42C8A4
square
#6142C8 #C84266 #A9C842 #42C8A4
split-complementary
#6142C8 #C8A442 #66C842
monochromatic
#33206F #482E9F #6142C8 #8971D6 #B0A1E4
Accessibility & contrast
On white
6.73
#6142C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#6142C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6142C8
6.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6142C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6142C8 | 1.00 | 6.73 | 3.12 | 6.73 |
| #FFFFFF | 6.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#3A647F
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #6142c8; /* rgb */ color: rgb(97, 66, 200); /* oklch */ color: oklch(49.4% 0.197 287.5);
Tailwind
colors: {
custom: {
50: '#9778da',
500: '#6142c8',
950: '#000000',
},
}SCSS
$custom: #6142c8; $custom-light: #9778da; $custom-dark: #000000;
JSON
{
"hex": "#6142c8",
"rgb": {
"r": 97,
"g": 66,
"b": 200
},
"hsl": {
"h": 253.881,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.49353,
"c": 0.19669,
"h": 287.5
},
"luminance": 0.10608
}Semantic roles & 50–950 ramp
primary
#6142C8
secondary
#C3D096
accent
#DE4ABC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83