#B540AB#B540AB

#B540AB is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.3% C 0.194 H 331.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#B540AB
RGBrgb(181, 64, 171)
HSLhsl(305, 48%, 48%)
HSVhsv(305, 65%, 71%)
CMYKcmyk(0%, 64.6%, 5.5%, 29%)
CIE-LABlab(47.54, 59.77, -33.94)
CIE-LCHlch(47.54, 68.73, 330.41°)
OKLaboklab(57.3% 0.1705 -0.0932)
OKLCHoklch(57.3% 0.194 331.3)
XYZxyz(28.2401, 16.4329, 40.2047)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540AB #40B54A
analogous
#8440B5 #B540AB #B54070
triadic
#B540AB #ABB540 #40ABB5
tetradic
#B540AB #B58440 #40B54A #4070B5
square
#B540AB #B58440 #40B54A #4070B5
split-complementary
#B540AB #70B540 #40B584
monochromatic
#5B2056 #883080 #B540AB #CA68C1 #DA96D4

Accessibility & contrast

On white

4.90
#B540AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B540AB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540AB#FFFFFF#000000##FFFFFF
##B540AB1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#6277A8
Tritanopia (blue-blind)
#BC4C70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b540ab;
/* rgb */ color: rgb(181, 64, 171);
/* oklch */ color: oklch(57.3% 0.194 331.3);
Tailwind
colors: {
  custom: {
    50: '#ce7dc4',
    500: '#b540ab',
    950: '#000000',
  },
}
SCSS
$custom: #b540ab;
$custom-light: #ce7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#b540ab",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 305.128,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57304,
    "c": 0.1943,
    "h": 331.3
  },
  "luminance": 0.16431
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B540AB

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

Preview Lab → · Contrast checker → · Palette generator →

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