#B940AE#B940AE
#B940AE is a mid, vivid purple. Relative luminance 0.170; OKLCH L 58.0% C 0.199 H 331.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #B940AE |
|---|---|
| RGB | rgb(185, 64, 174) |
| HSL | hsl(305, 49%, 49%) |
| HSV | hsv(305, 65%, 73%) |
| CMYK | cmyk(0%, 65.4%, 5.9%, 27.5%) |
| CIE-LAB | lab(48.31, 61.26, -34.45) |
| CIE-LCH | lch(48.31, 70.28, 330.65°) |
| OKLab | oklab(58.04% 0.1751 -0.0945) |
| OKLCH | oklch(58.04% 0.199 331.6) |
| XYZ | xyz(29.4809, 17.0393, 41.7724) |
| Luminance | 0.1704 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.95
Ugly Purple
#A442A0
ΔE00 4.24
Pinky Purple
#C94CBE
ΔE00 4.99
Medium Purple
#9E43A2
ΔE00 5.22
Barney
#AC1DB8
ΔE00 6.91
Purply
#983FB2
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B940AE #40B94B
analogous
#8840B9 #B940AE #B94072
triadic
#B940AE #AEB940 #40AEB9
tetradic
#B940AE #B98840 #40B94B #4072B9
square
#B940AE #B98840 #40B94B #4072B9
split-complementary
#B940AE #72B940 #40B988
monochromatic
#5E2158 #8C3083 #B940AE #CC6BC3 #DB98D5
Accessibility & contrast
On white
4.76
#B940AE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.41
#B940AE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B940AE
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B940AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B940AE | 1.00 | 4.76 | 4.41 | 4.76 |
| #FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3968B1
Deuteranopia (green-blind)
#6379AB
Tritanopia (blue-blind)
#C04C71
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #b940ae; /* rgb */ color: rgb(185, 64, 174); /* oklch */ color: oklch(58.0% 0.199 331.6);
Tailwind
colors: {
custom: {
50: '#d17ec6',
500: '#b940ae',
950: '#000000',
},
}SCSS
$custom: #b940ae; $custom-light: #d17ec6; $custom-dark: #000000;
JSON
{
"hex": "#b940ae",
"rgb": {
"r": 185,
"g": 64,
"b": 174
},
"hsl": {
"h": 305.455,
"s": 48.594,
"l": 48.824
},
"oklch": {
"l": 0.58035,
"c": 0.19897,
"h": 331.6
},
"luminance": 0.17037
}Semantic roles & 50–950 ramp
primary
#B940AE
secondary
#8EC793
accent
#D85C50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82