#B540AD#B540AD

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

Color values

HEX#B540AD
RGBrgb(181, 64, 173)
HSLhsl(304, 48%, 48%)
HSVhsv(304, 65%, 71%)
CMYKcmyk(0%, 64.6%, 4.4%, 29%)
CIE-LABlab(47.64, 60.10, -34.96)
CIE-LCHlch(47.64, 69.53, 329.81°)
OKLaboklab(57.41% 0.1707 -0.0961)
OKLCHoklch(57.41% 0.196 330.6)
XYZxyz(28.4321, 16.5098, 41.2163)
Luminance0.1651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540AD #40B548
analogous
#8340B5 #B540AD #B54072
triadic
#B540AD #ADB540 #40ADB5
tetradic
#B540AD #B58340 #40B548 #4072B5
square
#B540AD #B58340 #40B548 #4072B5
split-complementary
#B540AD #72B540 #40B583
monochromatic
#5B2057 #883082 #B540AD #CA68C3 #DA96D5

Accessibility & contrast

On white

4.88
#B540AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#B540AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540AD
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540AD#FFFFFF#000000##FFFFFF
##B540AD1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3767B0
Deuteranopia (green-blind)
#6177AA
Tritanopia (blue-blind)
#BC4C71
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b540ad;
/* rgb */ color: rgb(181, 64, 173);
/* oklch */ color: oklch(57.4% 0.196 330.6);
Tailwind
colors: {
  custom: {
    50: '#ce7dc6',
    500: '#b540ad',
    950: '#000000',
  },
}
SCSS
$custom: #b540ad;
$custom-light: #ce7dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b540ad",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 304.103,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57408,
    "c": 0.19588,
    "h": 330.6
  },
  "luminance": 0.16508
}

Semantic roles & 50–950 ramp

primary
#B540AD
secondary
#8BC58F
accent
#D75A50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B540AD

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

Preview Lab → · Contrast checker → · Palette generator →

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