#6A42D2#6A42D2
#6A42D2 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.208 H 289.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #6A42D2 |
|---|---|
| RGB | rgb(106, 66, 210) |
| HSL | hsl(257, 62%, 54%) |
| HSV | hsv(257, 69%, 82%) |
| CMYK | cmyk(49.5%, 68.6%, 0%, 17.6%) |
| CIE-LAB | lab(40.59, 51.06, -68.35) |
| CIE-LCH | lch(40.59, 85.32, 306.76°) |
| OKLab | oklab(51.02% 0.0701 -0.1961) |
| OKLCH | oklch(51.02% 0.208 289.7) |
| XYZ | xyz(19.5216, 11.6129, 62.1732) |
| Luminance | 0.1161 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.99
Bluish Purple
#703BE7
ΔE00 2.92
Burple
#6832E3
ΔE00 3.43
Purpleish Blue
#6140EF
ΔE00 3.76
Purpley Blue
#5F34E7
ΔE00 3.76
Blurple
#5539CC
ΔE00 3.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A42D2 #AAD242
analogous
#4262D2 #6A42D2 #B242D2
triadic
#6A42D2 #D26A42 #42D26A
tetradic
#6A42D2 #D24262 #AAD242 #42D2B2
square
#6A42D2 #D24262 #AAD242 #42D2B2
split-complementary
#6A42D2 #D2B242 #62D242
monochromatic
#381E7C #4E29AD #6A42D2 #9173DE #B8A5EA
Accessibility & contrast
On white
6.32
#6A42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#6A42D2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6A42D2
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A42D2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A42D2 | 1.00 | 6.32 | 3.32 | 6.32 |
| #FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#466785
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #6a42d2; /* rgb */ color: rgb(106, 66, 210); /* oklch */ color: oklch(51.0% 0.208 289.7);
Tailwind
colors: {
custom: {
50: '#9e79e1',
500: '#6a42d2',
950: '#000000',
},
}SCSS
$custom: #6a42d2; $custom-light: #9e79e1; $custom-dark: #000000;
JSON
{
"hex": "#6a42d2",
"rgb": {
"r": 106,
"g": 66,
"b": 210
},
"hsl": {
"h": 256.667,
"s": 61.538,
"l": 54.118
},
"oklch": {
"l": 0.5102,
"c": 0.20826,
"h": 289.7
},
"luminance": 0.11614
}Semantic roles & 50–950 ramp
primary
#6A42D2
secondary
#C6D799
accent
#E543B8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83