#6F42DC#6F42DC
#6F42DC is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.220 H 290.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #6F42DC |
|---|---|
| RGB | rgb(111, 66, 220) |
| HSL | hsl(258, 69%, 56%) |
| HSV | hsv(258, 70%, 86%) |
| CMYK | cmyk(49.5%, 70%, 0%, 13.7%) |
| CIE-LAB | lab(41.91, 54.65, -71.92) |
| CIE-LCH | lch(41.91, 90.32, 307.23°) |
| OKLab | oklab(52.33% 0.0753 -0.2064) |
| OKLCH | oklch(52.33% 0.22 290.1) |
| XYZ | xyz(21.4183, 12.4424, 68.9693) |
| Luminance | 0.1244 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 1.73
Purpleish Blue
#6140EF
ΔE00 2.91
Burple
#6832E3
ΔE00 3.27
Bluey Purple
#6241C7
ΔE00 3.53
Purpley Blue
#5F34E7
ΔE00 3.66
Blueviolet
#8A2BE2
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6F42DC #AFDC42
analogous
#4262DC #6F42DC #BC42DC
triadic
#6F42DC #DC6F42 #42DC6F
tetradic
#6F42DC #DC4262 #AFDC42 #42DCBC
square
#6F42DC #DC4262 #AFDC42 #42DCBC
split-complementary
#6F42DC #DCBC42 #62DC42
monochromatic
#3A1A8A #5023BE #6F42DC #9676E6 #BEA9EF
Accessibility & contrast
On white
6.02
#6F42DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#6F42DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6F42DC
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6F42DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6F42DC | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#005FD9
Tritanopia (blue-blind)
#496A8A
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #6f42dc; /* rgb */ color: rgb(111, 66, 220); /* oklch */ color: oklch(52.3% 0.220 290.1);
Tailwind
colors: {
custom: {
50: '#a27ae8',
500: '#6f42dc',
950: '#000000',
},
}SCSS
$custom: #6f42dc; $custom-light: #a27ae8; $custom-dark: #000000;
JSON
{
"hex": "#6f42dc",
"rgb": {
"r": 111,
"g": 66,
"b": 220
},
"hsl": {
"h": 257.532,
"s": 68.75,
"l": 56.078
},
"oklch": {
"l": 0.52329,
"c": 0.21972,
"h": 290.1
},
"luminance": 0.12443
}Semantic roles & 50–950 ramp
primary
#6F42DC
secondary
#CADD9D
accent
#EC3CB8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84