#7042CF#7042CF
#7042CF is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.205 H 292.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #7042CF |
|---|---|
| RGB | rgb(112, 66, 207) |
| HSL | hsl(260, 59%, 54%) |
| HSV | hsv(260, 68%, 81%) |
| CMYK | cmyk(45.9%, 68.1%, 0%, 18.8%) |
| CIE-LAB | lab(40.97, 51.29, -65.98) |
| CIE-LCH | lch(40.97, 83.57, 307.86°) |
| OKLab | oklab(51.36% 0.079 -0.1889) |
| OKLCH | oklch(51.36% 0.205 292.7) |
| XYZ | xyz(19.8897, 11.8455, 60.2578) |
| Luminance | 0.1185 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.54
Bluish Purple
#703BE7
ΔE00 3.17
Burple
#6832E3
ΔE00 3.89
Purpley Blue
#5F34E7
ΔE00 4.49
Purpleish Blue
#6140EF
ΔE00 4.51
Blurple
#5539CC
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7042CF #A1CF42
analogous
#425ACF #7042CF #B642CF
triadic
#7042CF #CF7042 #42CF70
tetradic
#7042CF #CF425A #A1CF42 #42CFB6
square
#7042CF #CF425A #A1CF42 #42CFB6
split-complementary
#7042CF #CFB642 #5ACF42
monochromatic
#3C1F78 #542BA9 #7042CF #9573DB #BAA4E8
Accessibility & contrast
On white
6.23
#7042CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#7042CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7042CF
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7042CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7042CF | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#546583
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7042cf; /* rgb */ color: rgb(112, 66, 207); /* oklch */ color: oklch(51.4% 0.205 292.7);
Tailwind
colors: {
custom: {
50: '#a17adf',
500: '#7042cf',
950: '#000000',
},
}SCSS
$custom: #7042cf; $custom-light: #a17adf; $custom-dark: #000000;
JSON
{
"hex": "#7042cf",
"rgb": {
"r": 112,
"g": 66,
"b": 207
},
"hsl": {
"h": 259.574,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.51358,
"c": 0.20478,
"h": 292.7
},
"luminance": 0.11846
}Semantic roles & 50–950 ramp
primary
#7042CF
secondary
#C1D598
accent
#E345AF
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83