#6142C2#6142C2
#6142C2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.189 H 288.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #6142C2 |
|---|---|
| RGB | rgb(97, 66, 194) |
| HSL | hsl(255, 51%, 51%) |
| HSV | hsv(255, 66%, 76%) |
| CMYK | cmyk(50%, 66%, 0%, 23.9%) |
| CIE-LAB | lab(38.43, 44.94, -62.63) |
| CIE-LCH | lch(38.43, 77.08, 305.66°) |
| OKLab | oklab(48.86% 0.06 -0.1796) |
| OKLCH | oklch(48.86% 0.189 288.5) |
| XYZ | xyz(16.6128, 10.3321, 52.1474) |
| Luminance | 0.1033 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.74
Blue With A Hint Of Purple
#533CC6
ΔE00 2.58
Blurple
#5539CC
ΔE00 2.96
Ocean Blue
#4F42B5
ΔE00 3.46
Burple
#6832E3
ΔE00 5.03
Purpley Blue
#5F34E7
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6142C2 #A3C242
analogous
#4263C2 #6142C2 #A142C2
triadic
#6142C2 #C26142 #42C261
tetradic
#6142C2 #C24263 #A3C242 #42C2A1
square
#6142C2 #C24263 #A3C242 #42C2A1
split-complementary
#6142C2 #C2A142 #63C242
monochromatic
#332268 #493196 #6142C2 #8870D1 #AE9FE0
Accessibility & contrast
On white
6.85
#6142C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#6142C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6142C2
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6142C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6142C2 | 1.00 | 6.85 | 3.07 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#3F627C
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #6142c2; /* rgb */ color: rgb(97, 66, 194); /* oklch */ color: oklch(48.9% 0.189 288.5);
Tailwind
colors: {
custom: {
50: '#9678d5',
500: '#6142c2',
950: '#000000',
},
}SCSS
$custom: #6142c2; $custom-light: #9678d5; $custom-dark: #000000;
JSON
{
"hex": "#6142c2",
"rgb": {
"r": 97,
"g": 66,
"b": 194
},
"hsl": {
"h": 254.531,
"s": 51.2,
"l": 50.98
},
"oklch": {
"l": 0.4886,
"c": 0.18935,
"h": 288.5
},
"luminance": 0.10333
}Semantic roles & 50–950 ramp
primary
#6142C2
secondary
#BFCC94
accent
#DB4DB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83