#B540A0#B540A0

#B540A0 is a mid, vivid pink. Relative luminance 0.160; OKLCH L 56.8% C 0.186 H 335.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B540A0
RGBrgb(181, 64, 160)
HSLhsl(311, 48%, 48%)
HSVhsv(311, 65%, 71%)
CMYKcmyk(0%, 64.6%, 11.6%, 29%)
CIE-LABlab(47.02, 58.02, -28.24)
CIE-LCHlch(47.02, 64.53, 334.05°)
OKLaboklab(56.75% 0.1692 -0.0768)
OKLCHoklch(56.75% 0.186 335.6)
XYZxyz(27.2349, 16.0309, 34.9108)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540A0 #40B555
analogous
#8F40B5 #B540A0 #B54066
triadic
#B540A0 #A0B540 #40A0B5
tetradic
#B540A0 #B58F40 #40B555 #4066B5
square
#B540A0 #B58F40 #40B555 #4066B5
split-complementary
#B540A0 #66B540 #40B58F
monochromatic
#5B2050 #883078 #B540A0 #CA68B8 #DA96CE

Accessibility & contrast

On white

4.99
#B540A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B540A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540A0
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540A0#FFFFFF#000000##FFFFFF
##B540A01.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4164A3
Deuteranopia (green-blind)
#66769D
Tritanopia (blue-blind)
#BE476A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b540a0;
/* rgb */ color: rgb(181, 64, 160);
/* oklch */ color: oklch(56.8% 0.186 335.6);
Tailwind
colors: {
  custom: {
    50: '#ce7dbc',
    500: '#b540a0',
    950: '#000000',
  },
}
SCSS
$custom: #b540a0;
$custom-light: #ce7dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b540a0",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 310.769,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56754,
    "c": 0.18586,
    "h": 335.6
  },
  "luminance": 0.16029
}

Semantic roles & 50–950 ramp

primary
#B540A0
secondary
#8BC596
accent
#D76950
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B540A0

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

Preview Lab → · Contrast checker → · Palette generator →

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