#B54CA2#B54CA2

#B54CA2 is a mid, vivid pink. Relative luminance 0.176; OKLCH L 58.2% C 0.170 H 335.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#B54CA2
RGBrgb(181, 76, 162)
HSLhsl(311, 42%, 50%)
HSVhsv(311, 58%, 71%)
CMYKcmyk(0%, 58%, 10.5%, 29%)
CIE-LABlab(49.01, 53.11, -26.32)
CIE-LCHlch(49.01, 59.28, 333.64°)
OKLaboklab(58.25% 0.1542 -0.0715)
OKLCHoklch(58.25% 0.17 335.1)
XYZxyz(28.1623, 17.6034, 36.0899)
Luminance0.1760 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B54CA2 #4CB55F
analogous
#934CB5 #B54CA2 #B54C6D
triadic
#B54CA2 #A2B54C #4CA2B5
tetradic
#B54CA2 #B5934C #4CB55F #4C6DB5
square
#B54CA2 #B5934C #4CB55F #4C6DB5
split-complementary
#B54CA2 #6DB54C #4CB593
monochromatic
#5F2755 #8B397C #B54CA2 #C777B8 #D9A3CF

Accessibility & contrast

On white

4.65
#B54CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B54CA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B54CA2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B54CA2#FFFFFF#000000##FFFFFF
##B54CA21.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6BA5
Deuteranopia (green-blind)
#6C7A9F
Tritanopia (blue-blind)
#BD5270
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b54ca2;
/* rgb */ color: rgb(181, 76, 162);
/* oklch */ color: oklch(58.2% 0.170 335.1);
Tailwind
colors: {
  custom: {
    50: '#ce84bd',
    500: '#b54ca2',
    950: '#000000',
  },
}
SCSS
$custom: #b54ca2;
$custom-light: #ce84bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b54ca2",
  "rgb": {
    "r": 181,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 310.857,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58245,
    "c": 0.16995,
    "h": 335.1
  },
  "luminance": 0.17601
}

Semantic roles & 50–950 ramp

primary
#B54CA2
secondary
#97C69F
accent
#D16D56
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #B54CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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