#B8338E#B8338E
#B8338E is a mid, vivid pink. Relative luminance 0.145; OKLCH L 55.1% C 0.192 H 343.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).
Color values
| HEX | #B8338E |
|---|---|
| RGB | rgb(184, 51, 142) |
| HSL | hsl(319, 57%, 46%) |
| HSV | hsv(319, 72%, 72%) |
| CMYK | cmyk(0%, 72.3%, 22.8%, 27.8%) |
| CIE-LAB | lab(44.96, 61.12, -20.59) |
| CIE-LCH | lch(44.96, 64.50, 341.39°) |
| OKLab | oklab(55.1% 0.1841 -0.055) |
| OKLCH | oklch(55.1% 0.192 343.4) |
| XYZ | xyz(25.8344, 14.5137, 27.0268) |
| Luminance | 0.1451 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 3.72
Magenta (survey)
#C20078
ΔE00 5.61
Ugly Purple
#A442A0
ΔE00 6.15
Medium Purple
#9E43A2
ΔE00 7.49
Purpley Pink
#C83CB9
ΔE00 8.12
Warm Purple
#952E8F
ΔE00 8.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B8338E #33B85D
analogous
#9F33B8 #B8338E #B8334B
triadic
#B8338E #8EB833 #338EB8
tetradic
#B8338E #B89F33 #33B85D #334BB8
square
#B8338E #B89F33 #33B85D #334BB8
split-complementary
#B8338E #4BB833 #33B89F
monochromatic
#581844 #882669 #B8338E #D158AA #DE88C3
Accessibility & contrast
On white
5.38
#B8338E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#B8338E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B8338E
5.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B8338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B8338E | 1.00 | 5.38 | 3.90 | 5.38 |
| #FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#415C91
Deuteranopia (green-blind)
#6A728B
Tritanopia (blue-blind)
#C4335C
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #b8338e; /* rgb */ color: rgb(184, 51, 142); /* oklch */ color: oklch(55.1% 0.192 343.4);
Tailwind
colors: {
custom: {
50: '#d177af',
500: '#b8338e',
950: '#000000',
},
}SCSS
$custom: #b8338e; $custom-light: #d177af; $custom-dark: #000000;
JSON
{
"hex": "#b8338e",
"rgb": {
"r": 184,
"g": 51,
"b": 142
},
"hsl": {
"h": 318.947,
"s": 56.596,
"l": 46.078
},
"oklch": {
"l": 0.55095,
"c": 0.19214,
"h": 343.4
},
"luminance": 0.14511
}Semantic roles & 50–950 ramp
primary
#B8338E
secondary
#7FC896
accent
#E07848
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150910
muted
#837B7F