#7040CA#7040CA
#7040CA is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.201 H 293.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).
Color values
| HEX | #7040CA |
|---|---|
| RGB | rgb(112, 64, 202) |
| HSL | hsl(261, 57%, 52%) |
| HSV | hsv(261, 68%, 79%) |
| CMYK | cmyk(44.6%, 68.3%, 0%, 20.8%) |
| CIE-LAB | lab(40.21, 50.97, -64.33) |
| CIE-LCH | lch(40.21, 82.08, 308.39°) |
| OKLab | oklab(50.69% 0.0818 -0.1841) |
| OKLCH | oklch(50.69% 0.201 293.9) |
| XYZ | xyz(19.1733, 11.3753, 57.0511) |
| Luminance | 0.1138 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.36
Bluish Purple
#703BE7
ΔE00 3.77
Burple
#6832E3
ΔE00 4.06
Blurple
#5539CC
ΔE00 4.50
Blue With A Hint Of Purple
#533CC6
ΔE00 4.71
Purpley Blue
#5F34E7
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7040CA #9ACA40
analogous
#4055CA #7040CA #B540CA
triadic
#7040CA #CA7040 #40CA70
tetradic
#7040CA #CA4055 #9ACA40 #40CAB5
square
#7040CA #CA4055 #9ACA40 #40CAB5
split-complementary
#7040CA #CAB540 #55CA40
monochromatic
#3B1F70 #552CA0 #7040CA #9470D7 #B8A0E5
Accessibility & contrast
On white
6.41
#7040CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.28
#7040CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7040CA
6.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7040CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7040CA | 1.00 | 6.41 | 3.28 | 6.41 |
| #FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#566280
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #7040ca; /* rgb */ color: rgb(112, 64, 202); /* oklch */ color: oklch(50.7% 0.201 293.9);
Tailwind
colors: {
custom: {
50: '#a078db',
500: '#7040ca',
950: '#000000',
},
}SCSS
$custom: #7040ca; $custom-light: #a078db; $custom-dark: #000000;
JSON
{
"hex": "#7040ca",
"rgb": {
"r": 112,
"g": 64,
"b": 202
},
"hsl": {
"h": 260.87,
"s": 56.557,
"l": 52.157
},
"oklch": {
"l": 0.50689,
"c": 0.20142,
"h": 293.9
},
"luminance": 0.11376
}Semantic roles & 50–950 ramp
primary
#7040CA
secondary
#BCD195
accent
#E048AB
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83