#7031C4#7031C4
#7031C4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.212 H 297.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).
Color values
| HEX | #7031C4 |
|---|---|
| RGB | rgb(112, 49, 196) |
| HSL | hsl(266, 60%, 48%) |
| HSV | hsv(266, 75%, 77%) |
| CMYK | cmyk(42.9%, 75%, 0%, 23.1%) |
| CIE-LAB | lab(37.16, 56.60, -65.80) |
| CIE-LCH | lch(37.16, 86.79, 310.70°) |
| OKLab | oklab(48.38% 0.0968 -0.1883) |
| OKLCH | oklch(48.38% 0.212 297.2) |
| XYZ | xyz(17.7416, 9.6265, 53.1372) |
| Luminance | 0.0963 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.08
Purple Blue
#5D21D0
ΔE00 4.16
Burple
#6832E3
ΔE00 4.29
Blurple
#5539CC
ΔE00 4.59
Blue With A Hint Of Purple
#533CC6
ΔE00 5.07
Purpley Blue
#5F34E7
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7031C4 #85C431
analogous
#313CC4 #7031C4 #B931C4
triadic
#7031C4 #C47031 #31C470
tetradic
#7031C4 #C4313C #85C431 #31C4B9
square
#7031C4 #C4313C #85C431 #31C4B9
split-complementary
#7031C4 #C4B931 #3CC431
monochromatic
#381962 #542593 #7031C4 #905CD6 #B28DE2
Accessibility & contrast
On white
7.18
#7031C4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#7031C4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7031C4
7.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7031C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7031C4 | 1.00 | 7.18 | 2.93 | 7.18 |
| #FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#5A5879
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7031c4; /* rgb */ color: rgb(112, 49, 196); /* oklch */ color: oklch(48.4% 0.212 297.2);
Tailwind
colors: {
custom: {
50: '#a170d7',
500: '#7031c4',
950: '#000000',
},
}SCSS
$custom: #7031c4; $custom-light: #a170d7; $custom-dark: #000000;
JSON
{
"hex": "#7031c4",
"rgb": {
"r": 112,
"g": 49,
"b": 196
},
"hsl": {
"h": 265.714,
"s": 60,
"l": 48.039
},
"oklch": {
"l": 0.48382,
"c": 0.21174,
"h": 297.2
},
"luminance": 0.09627
}Semantic roles & 50–950 ramp
primary
#7031C4
secondary
#AECD84
accent
#E3459F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83