#B5229D#B5229D

#B5229D is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.1% C 0.217 H 336.1°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#B5229D
RGBrgb(181, 34, 157)
HSLhsl(310, 68%, 42%)
HSVhsv(310, 81%, 71%)
CMYKcmyk(0%, 81.2%, 13.3%, 29%)
CIE-LABlab(43.37, 67.49, -32.16)
CIE-LCHlch(43.37, 74.76, 334.52°)
OKLaboklab(54.07% 0.1984 -0.0878)
OKLCHoklch(54.07% 0.217 336.1)
XYZxyz(25.7143, 13.4046, 33.1248)
Luminance0.1340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5229D #22B53A
analogous
#8422B5 #B5229D #B52254
triadic
#B5229D #9DB522 #229DB5
tetradic
#B5229D #B58422 #22B53A #2254B5
square
#B5229D #B58422 #22B53A #2254B5
split-complementary
#B5229D #54B522 #22B584
monochromatic
#4E0F44 #811870 #B5229D #DA3AC0 #E46ED0

Accessibility & contrast

On white

5.71
#B5229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B5229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5229D
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5229D#FFFFFF#000000##FFFFFF
##B5229D1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2559A0
Deuteranopia (green-blind)
#5C6E9A
Tritanopia (blue-blind)
#BF2F60
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b5229d;
/* rgb */ color: rgb(181, 34, 157);
/* oklch */ color: oklch(54.1% 0.217 336.1);
Tailwind
colors: {
  custom: {
    50: '#cf70ba',
    500: '#b5229d',
    950: '#000000',
  },
}
SCSS
$custom: #b5229d;
$custom-light: #cf70ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b5229d",
  "rgb": {
    "r": 181,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 309.796,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54071,
    "c": 0.21693,
    "h": 336.1
  },
  "luminance": 0.13402
}

Semantic roles & 50–950 ramp

primary
#B5229D
secondary
#69CA79
accent
#EB593D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B5229D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B5229D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva