#B540AE#B540AE

#B540AE is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.5% C 0.197 H 330.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B540AE
RGBrgb(181, 64, 174)
HSLhsl(304, 48%, 48%)
HSVhsv(304, 65%, 71%)
CMYKcmyk(0%, 64.6%, 3.9%, 29%)
CIE-LABlab(47.69, 60.27, -35.47)
CIE-LCHlch(47.69, 69.93, 329.52°)
OKLaboklab(57.46% 0.1708 -0.0976)
OKLCHoklch(57.46% 0.197 330.3)
XYZxyz(28.5293, 16.5486, 41.7278)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540AE #40B547
analogous
#8140B5 #B540AE #B54073
triadic
#B540AE #AEB540 #40AEB5
tetradic
#B540AE #B58140 #40B547 #4073B5
square
#B540AE #B58140 #40B547 #4073B5
split-complementary
#B540AE #73B540 #40B581
monochromatic
#5B2057 #883083 #B540AE #CA68C4 #DA96D6

Accessibility & contrast

On white

4.87
#B540AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#B540AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540AE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540AE#FFFFFF#000000##FFFFFF
##B540AE1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3767B1
Deuteranopia (green-blind)
#6077AB
Tritanopia (blue-blind)
#BC4D71
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b540ae;
/* rgb */ color: rgb(181, 64, 174);
/* oklch */ color: oklch(57.5% 0.197 330.3);
Tailwind
colors: {
  custom: {
    50: '#ce7dc6',
    500: '#b540ae',
    950: '#000000',
  },
}
SCSS
$custom: #b540ae;
$custom-light: #ce7dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#b540ae",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 303.59,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57461,
    "c": 0.19668,
    "h": 330.3
  },
  "luminance": 0.16547
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B540AE

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

Preview Lab → · Contrast checker → · Palette generator →

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