#C42FBA#C42FBA
#C42FBA is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.8% C 0.233 H 331.1°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #C42FBA |
|---|---|
| RGB | rgb(196, 47, 186) |
| HSL | hsl(304, 61%, 48%) |
| HSV | hsv(304, 76%, 77%) |
| CMYK | cmyk(0%, 76%, 5.1%, 23.1%) |
| CIE-LAB | lab(48.66, 71.46, -40.81) |
| CIE-LCH | lch(48.66, 82.29, 330.27°) |
| OKLab | oklab(58.83% 0.2039 -0.1125) |
| OKLCH | oklch(58.83% 0.233 331.1) |
| XYZ | xyz(32.6444, 17.3166, 48.0680) |
| Luminance | 0.1731 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.40
Pinky Purple
#C94CBE
ΔE00 5.11
Purple Pink
#D725DE
ΔE00 5.86
Barney
#AC1DB8
ΔE00 6.23
Ugly Purple
#A442A0
ΔE00 6.26
Medium Purple
#9E43A2
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C42FBA #2FC439
analogous
#842FC4 #C42FBA #C42F6F
triadic
#C42FBA #BAC42F #2FBAC4
tetradic
#C42FBA #C4842F #2FC439 #2F6FC4
square
#C42FBA #C4842F #2FC439 #2F6FC4
split-complementary
#C42FBA #6FC42F #2FC484
monochromatic
#61175C #93238B #C42FBA #D759CF #E38ADD
Accessibility & contrast
On white
4.71
#C42FBA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#C42FBA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #C42FBA
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C42FBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##C42FBA | 1.00 | 4.71 | 4.46 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#5F7BB6
Tritanopia (blue-blind)
#CC4373
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #c42fba; /* rgb */ color: rgb(196, 47, 186); /* oklch */ color: oklch(58.8% 0.233 331.1);
Tailwind
colors: {
custom: {
50: '#da78cf',
500: '#c42fba',
950: '#000000',
},
}SCSS
$custom: #c42fba; $custom-light: #da78cf; $custom-dark: #000000;
JSON
{
"hex": "#c42fba",
"rgb": {
"r": 196,
"g": 47,
"b": 186
},
"hsl": {
"h": 304.027,
"s": 61.317,
"l": 47.647
},
"oklch": {
"l": 0.58827,
"c": 0.23285,
"h": 331.1
},
"luminance": 0.17314
}Semantic roles & 50–950 ramp
primary
#C42FBA
secondary
#82CD87
accent
#E44E43
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82