#6142C5#6142C5
#6142C5 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.193 H 288.0°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).
Color values
| HEX | #6142C5 |
|---|---|
| RGB | rgb(97, 66, 197) |
| HSL | hsl(254, 53%, 52%) |
| HSV | hsv(254, 66%, 77%) |
| CMYK | cmyk(50.8%, 66.5%, 0%, 22.7%) |
| CIE-LAB | lab(38.67, 45.81, -63.99) |
| CIE-LCH | lch(38.67, 78.70, 305.60°) |
| OKLab | oklab(49.11% 0.0596 -0.1836) |
| OKLCH | oklch(49.11% 0.193 288) |
| XYZ | xyz(16.9531, 10.4682, 53.9398) |
| Luminance | 0.1047 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.39
Blue With A Hint Of Purple
#533CC6
ΔE00 2.52
Blurple
#5539CC
ΔE00 2.81
Ocean Blue
#4F42B5
ΔE00 3.68
Burple
#6832E3
ΔE00 4.70
Purpley Blue
#5F34E7
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6142C5 #A6C542
analogous
#4265C5 #6142C5 #A242C5
triadic
#6142C5 #C56142 #42C561
tetradic
#6142C5 #C54265 #A6C542 #42C5A2
square
#6142C5 #C54265 #A6C542 #42C5A2
split-complementary
#6142C5 #C5A242 #65C542
monochromatic
#33216C #492F9A #6142C5 #8871D3 #AFA0E2
Accessibility & contrast
On white
6.79
#6142C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#6142C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6142C5
6.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6142C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6142C5 | 1.00 | 6.79 | 3.09 | 6.79 |
| #FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#3D637E
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #6142c5; /* rgb */ color: rgb(97, 66, 197); /* oklch */ color: oklch(49.1% 0.193 288.0);
Tailwind
colors: {
custom: {
50: '#9778d8',
500: '#6142c5',
950: '#000000',
},
}SCSS
$custom: #6142c5; $custom-light: #9778d8; $custom-dark: #000000;
JSON
{
"hex": "#6142c5",
"rgb": {
"r": 97,
"g": 66,
"b": 197
},
"hsl": {
"h": 254.198,
"s": 53.036,
"l": 51.569
},
"oklch": {
"l": 0.49105,
"c": 0.19303,
"h": 288
},
"luminance": 0.10469
}Semantic roles & 50–950 ramp
primary
#6142C5
secondary
#C1CE95
accent
#DC4BBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0915
muted
#7E7B83