#C040B3#C040B3
#C040B3 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.3% C 0.207 H 332.2°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #C040B3 |
|---|---|
| RGB | rgb(192, 64, 179) |
| HSL | hsl(306, 50%, 50%) |
| HSV | hsv(306, 67%, 75%) |
| CMYK | cmyk(0%, 66.7%, 6.8%, 24.7%) |
| CIE-LAB | lab(49.65, 63.78, -35.19) |
| CIE-LCH | lch(49.65, 72.85, 331.11°) |
| OKLab | oklab(59.3% 0.1829 -0.0965) |
| OKLCH | oklch(59.3% 0.207 332.2) |
| XYZ | xyz(31.7083, 18.1304, 44.4686) |
| Luminance | 0.1813 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 1.50
Pinky Purple
#C94CBE
ΔE00 3.63
Ugly Purple
#A442A0
ΔE00 5.72
Medium Purple
#9E43A2
ΔE00 6.66
Mediumorchid
#BA55D3
ΔE00 6.84
Purple Pink
#D725DE
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C040B3 #40C04D
analogous
#8D40C0 #C040B3 #C04073
triadic
#C040B3 #B3C040 #40B3C0
tetradic
#C040B3 #C08D40 #40C04D #4073C0
square
#C040B3 #C08D40 #40C04D #4073C0
split-complementary
#C040B3 #73C040 #40C08D
monochromatic
#64215E #923089 #C040B3 #CF6EC5 #DE9CD8
Accessibility & contrast
On white
4.54
#C040B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.63
#C040B3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C040B3
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C040B3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C040B3 | 1.00 | 4.54 | 4.63 | 4.63 |
| #FFFFFF | 4.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A6AB6
Deuteranopia (green-blind)
#677DB0
Tritanopia (blue-blind)
#C84C74
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #c040b3; /* rgb */ color: rgb(192, 64, 179); /* oklch */ color: oklch(59.3% 0.207 332.2);
Tailwind
colors: {
custom: {
50: '#d67fca',
500: '#c040b3',
950: '#000000',
},
}SCSS
$custom: #c040b3; $custom-light: #d67fca; $custom-dark: #000000;
JSON
{
"hex": "#c040b3",
"rgb": {
"r": 192,
"g": 64,
"b": 179
},
"hsl": {
"h": 306.094,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.59304,
"c": 0.20683,
"h": 332.2
},
"luminance": 0.18128
}Semantic roles & 50–950 ramp
primary
#C040B3
secondary
#91CB97
accent
#DA5C4E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82