#B52297#B52297

#B52297 is a mid, highly saturated pink. Relative luminance 0.132; OKLCH L 53.8% C 0.213 H 338.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#B52297
RGBrgb(181, 34, 151)
HSLhsl(312, 68%, 42%)
HSVhsv(312, 81%, 71%)
CMYKcmyk(0%, 81.2%, 16.6%, 29%)
CIE-LABlab(43.07, 66.66, -29.01)
CIE-LCHlch(43.07, 72.70, 336.48°)
OKLaboklab(53.76% 0.1979 -0.0788)
OKLCHoklch(53.76% 0.213 338.3)
XYZxyz(25.2146, 13.2047, 30.4930)
Luminance0.1320 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52297 #22B540
analogous
#8A22B5 #B52297 #B5224E
triadic
#B52297 #97B522 #2297B5
tetradic
#B52297 #B58A22 #22B540 #224EB5
square
#B52297 #B58A22 #22B540 #224EB5
split-complementary
#B52297 #4EB522 #22B58A
monochromatic
#4E0F41 #81186C #B52297 #DA3AB9 #E46ECC

Accessibility & contrast

On white

5.77
#B52297 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B52297 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52297
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52297#FFFFFF#000000##FFFFFF
##B522971.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#5E6E94
Tritanopia (blue-blind)
#BF2B5C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b52297;
/* rgb */ color: rgb(181, 34, 151);
/* oklch */ color: oklch(53.8% 0.213 338.3);
Tailwind
colors: {
  custom: {
    50: '#cf70b6',
    500: '#b52297',
    950: '#000000',
  },
}
SCSS
$custom: #b52297;
$custom-light: #cf70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b52297",
  "rgb": {
    "r": 181,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 312.245,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53762,
    "c": 0.21302,
    "h": 338.3
  },
  "luminance": 0.13202
}

Semantic roles & 50–950 ramp

primary
#B52297
secondary
#69CA7D
accent
#EB603D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B52297

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

Preview Lab → · Contrast checker → · Palette generator →

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