#BA42C7#BA42C7
#BA42C7 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.7% C 0.217 H 323.7°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #BA42C7 |
|---|---|
| RGB | rgb(186, 66, 199) |
| HSL | hsl(294, 54%, 52%) |
| HSV | hsv(294, 67%, 78%) |
| CMYK | cmyk(6.5%, 66.8%, 0%, 22%) |
| CIE-LAB | lab(50.05, 64.96, -46.24) |
| CIE-LCH | lch(50.05, 79.73, 324.56°) |
| OKLab | oklab(59.75% 0.1751 -0.1287) |
| OKLCH | oklch(59.75% 0.217 323.7) |
| XYZ | xyz(32.5058, 18.4609, 55.8729) |
| Luminance | 0.1846 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.00
Mediumorchid
#BA55D3
ΔE00 4.15
Pinky Purple
#C94CBE
ΔE00 4.87
Purple Pink
#D725DE
ΔE00 5.03
Pinkish Purple
#D648D7
ΔE00 6.08
Hot Purple
#CB00F5
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA42C7 #4FC742
analogous
#7742C7 #BA42C7 #C74292
triadic
#BA42C7 #C7BA42 #42C7BA
tetradic
#BA42C7 #C77742 #4FC742 #4292C7
square
#BA42C7 #C77742 #4FC742 #4292C7
split-complementary
#BA42C7 #92C742 #42C777
monochromatic
#66216E #922F9D #BA42C7 #CB71D5 #DCA0E3
Accessibility & contrast
On white
4.48
#BA42C7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.69
#BA42C7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #BA42C7
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA42C7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA42C7 | 1.00 | 4.48 | 4.69 | 4.69 |
| #FFFFFF | 4.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#216ECB
Deuteranopia (green-blind)
#587CC4
Tritanopia (blue-blind)
#BD587F
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #ba42c7; /* rgb */ color: rgb(186, 66, 199); /* oklch */ color: oklch(59.7% 0.217 323.7);
Tailwind
colors: {
custom: {
50: '#d280d8',
500: '#ba42c7',
950: '#000000',
},
}SCSS
$custom: #ba42c7; $custom-light: #d280d8; $custom-dark: #000000;
JSON
{
"hex": "#ba42c7",
"rgb": {
"r": 186,
"g": 66,
"b": 199
},
"hsl": {
"h": 294.135,
"s": 54.286,
"l": 51.961
},
"oklch": {
"l": 0.59746,
"c": 0.21727,
"h": 323.7
},
"luminance": 0.18459
}Semantic roles & 50–950 ramp
primary
#BA42C7
secondary
#9BD095
accent
#DE4A59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83