#B540AC#B540AC

#B540AC is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.4% C 0.195 H 331.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B540AC
RGBrgb(181, 64, 172)
HSLhsl(305, 48%, 48%)
HSVhsv(305, 65%, 71%)
CMYKcmyk(0%, 64.6%, 5%, 29%)
CIE-LABlab(47.59, 59.94, -34.45)
CIE-LCHlch(47.59, 69.13, 330.11°)
OKLaboklab(57.36% 0.1706 -0.0946)
OKLCHoklch(57.36% 0.195 331)
XYZxyz(28.3358, 16.4712, 40.7086)
Luminance0.1647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540AC #40B549
analogous
#8340B5 #B540AC #B54072
triadic
#B540AC #ACB540 #40ACB5
tetradic
#B540AC #B58340 #40B549 #4072B5
square
#B540AC #B58340 #40B549 #4072B5
split-complementary
#B540AC #72B540 #40B583
monochromatic
#5B2056 #883081 #B540AC #CA68C2 #DA96D5

Accessibility & contrast

On white

4.89
#B540AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B540AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540AC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540AC#FFFFFF#000000##FFFFFF
##B540AC1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AF
Deuteranopia (green-blind)
#6177A9
Tritanopia (blue-blind)
#BC4C70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b540ac;
/* rgb */ color: rgb(181, 64, 172);
/* oklch */ color: oklch(57.4% 0.195 331.0);
Tailwind
colors: {
  custom: {
    50: '#ce7dc5',
    500: '#b540ac',
    950: '#000000',
  },
}
SCSS
$custom: #b540ac;
$custom-light: #ce7dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#b540ac",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 304.615,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57356,
    "c": 0.19509,
    "h": 331
  },
  "luminance": 0.16469
}

Semantic roles & 50–950 ramp

primary
#B540AC
secondary
#8BC590
accent
#D75B50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B540AC

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

Preview Lab → · Contrast checker → · Palette generator →

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