#6142AF#6142AF
#6142AF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.166 H 292.0°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).
Color values
| HEX | #6142AF |
|---|---|
| RGB | rgb(97, 66, 175) |
| HSL | hsl(257, 45%, 47%) |
| HSV | hsv(257, 62%, 69%) |
| CMYK | cmyk(44.6%, 62.3%, 0%, 31.4%) |
| CIE-LAB | lab(36.99, 39.46, -53.78) |
| CIE-LCH | lch(36.99, 66.71, 306.26°) |
| OKLab | oklab(47.36% 0.0619 -0.1536) |
| OKLCH | oklch(47.36% 0.166 292) |
| XYZ | xyz(14.6137, 9.5325, 41.6191) |
| Luminance | 0.0953 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 3.43
Bluey Purple
#6241C7
ΔE00 3.56
Blue With A Hint Of Purple
#533CC6
ΔE00 4.36
Blurple
#5539CC
ΔE00 5.01
Rebeccapurple
#663399
ΔE00 5.47
Blueberry
#464196
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6142AF #90AF42
analogous
#425AAF #6142AF #9742AF
triadic
#6142AF #AF6142 #42AF61
tetradic
#6142AF #AF425A #90AF42 #42AF97
square
#6142AF #AF425A #90AF42 #42AF97
split-complementary
#6142AF #AF9742 #5AAF42
monochromatic
#302056 #483183 #6142AF #8368C6 #A795D7
Accessibility & contrast
On white
7.22
#6142AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#6142AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6142AF
7.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6142AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6142AF | 1.00 | 7.22 | 2.91 | 7.22 |
| #FFFFFF | 7.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#4A5B72
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #6142af; /* rgb */ color: rgb(97, 66, 175); /* oklch */ color: oklch(47.4% 0.166 292.0);
Tailwind
colors: {
custom: {
50: '#9478c8',
500: '#6142af',
950: '#000000',
},
}SCSS
$custom: #6142af; $custom-light: #9478c8; $custom-dark: #000000;
JSON
{
"hex": "#6142af",
"rgb": {
"r": 97,
"g": 66,
"b": 175
},
"hsl": {
"h": 257.064,
"s": 45.228,
"l": 47.255
},
"oklch": {
"l": 0.47362,
"c": 0.16559,
"h": 292
},
"luminance": 0.09533
}Semantic roles & 50–950 ramp
primary
#6142AF
secondary
#B2C28A
accent
#D553B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82