#B52A8E#B52A8E

#B52A8E is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.9% C 0.200 H 342.0°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B52A8E
RGBrgb(181, 42, 142)
HSLhsl(317, 62%, 44%)
HSVhsv(317, 77%, 71%)
CMYKcmyk(0%, 76.8%, 21.5%, 29%)
CIE-LABlab(43.41, 63.28, -23.02)
CIE-LCHlch(43.41, 67.33, 340.01°)
OKLaboklab(53.87% 0.1902 -0.0619)
OKLCHoklch(53.87% 0.2 342)
XYZxyz(24.7674, 13.4353, 26.8749)
Luminance0.1343 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52A8E #2AB551
analogous
#962AB5 #B52A8E #B52A48
triadic
#B52A8E #8EB52A #2A8EB5
tetradic
#B52A8E #B5962A #2AB551 #2A48B5
square
#B52A8E #B5962A #2AB551 #2A48B5
split-complementary
#B52A8E #48B52A #2AB596
monochromatic
#521340 #831E67 #B52A8E #D448AD #E079C3

Accessibility & contrast

On white

5.70
#B52A8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B52A8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52A8E
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52A8E#FFFFFF#000000##FFFFFF
##B52A8E1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385891
Deuteranopia (green-blind)
#646F8B
Tritanopia (blue-blind)
#C02C59
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b52a8e;
/* rgb */ color: rgb(181, 42, 142);
/* oklch */ color: oklch(53.9% 0.200 342.0);
Tailwind
colors: {
  custom: {
    50: '#cf72af',
    500: '#b52a8e',
    950: '#000000',
  },
}
SCSS
$custom: #b52a8e;
$custom-light: #cf72af;
$custom-dark: #000000;
JSON
{
  "hex": "#b52a8e",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 316.835,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53872,
    "c": 0.19999,
    "h": 342
  },
  "luminance": 0.13433
}

Semantic roles & 50–950 ramp

primary
#B52A8E
secondary
#73C88B
accent
#E57042
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B52A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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