#B54AA2#B54AA2

#B54AA2 is a mid, vivid pink. Relative luminance 0.173; OKLCH L 58.0% C 0.173 H 335.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B54AA2
RGBrgb(181, 74, 162)
HSLhsl(311, 42%, 50%)
HSVhsv(311, 59%, 71%)
CMYKcmyk(0%, 59.1%, 10.5%, 29%)
CIE-LABlab(48.68, 54.02, -26.84)
CIE-LCHlch(48.68, 60.32, 333.58°)
OKLaboklab(58% 0.1569 -0.0729)
OKLCHoklch(58% 0.173 335.1)
XYZxyz(28.0266, 17.3321, 36.0447)
Luminance0.1733 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54AA2 #4AB55D
analogous
#924AB5 #B54AA2 #B54A6D
triadic
#B54AA2 #A2B54A #4AA2B5
tetradic
#B54AA2 #B5924A #4AB55D #4A6DB5
square
#B54AA2 #B5924A #4AB55D #4A6DB5
split-complementary
#B54AA2 #6DB54A #4AB592
monochromatic
#5E2654 #8A387B #B54AA2 #C775B8 #D9A1CF

Accessibility & contrast

On white

4.70
#B54AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B54AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B54AA2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54AA2#FFFFFF#000000##FFFFFF
##B54AA21.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A69A5
Deuteranopia (green-blind)
#6B799F
Tritanopia (blue-blind)
#BD506F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b54aa2;
/* rgb */ color: rgb(181, 74, 162);
/* oklch */ color: oklch(58.0% 0.173 335.1);
Tailwind
colors: {
  custom: {
    50: '#ce82bd',
    500: '#b54aa2',
    950: '#000000',
  },
}
SCSS
$custom: #b54aa2;
$custom-light: #ce82bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b54aa2",
  "rgb": {
    "r": 181,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 310.654,
    "s": 41.961,
    "l": 50
  },
  "oklch": {
    "l": 0.57998,
    "c": 0.17298,
    "h": 335.1
  },
  "luminance": 0.1733
}

Semantic roles & 50–950 ramp

primary
#B54AA2
secondary
#95C59E
accent
#D26C56
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #B54AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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