#B540A4#B540A4

#B540A4 is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.0% C 0.189 H 334.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B540A4
RGBrgb(181, 64, 164)
HSLhsl(309, 48%, 48%)
HSVhsv(309, 65%, 71%)
CMYKcmyk(0%, 64.6%, 9.4%, 29%)
CIE-LABlab(47.20, 58.65, -30.33)
CIE-LCHlch(47.20, 66.02, 332.66°)
OKLaboklab(56.95% 0.1698 -0.0828)
OKLCHoklch(56.95% 0.189 334)
XYZxyz(27.5905, 16.1731, 36.7833)
Luminance0.1617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540A4 #40B551
analogous
#8B40B5 #B540A4 #B54069
triadic
#B540A4 #A4B540 #40A4B5
tetradic
#B540A4 #B58B40 #40B551 #4069B5
square
#B540A4 #B58B40 #40B551 #4069B5
split-complementary
#B540A4 #69B540 #40B58B
monochromatic
#5B2052 #88307B #B540A4 #CA68BC #DA96D0

Accessibility & contrast

On white

4.96
#B540A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B540A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540A4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540A4#FFFFFF#000000##FFFFFF
##B540A41.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A7
Deuteranopia (green-blind)
#6576A1
Tritanopia (blue-blind)
#BD496C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b540a4;
/* rgb */ color: rgb(181, 64, 164);
/* oklch */ color: oklch(57.0% 0.189 334.0);
Tailwind
colors: {
  custom: {
    50: '#ce7dbf',
    500: '#b540a4',
    950: '#000000',
  },
}
SCSS
$custom: #b540a4;
$custom-light: #ce7dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#b540a4",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 308.718,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5695,
    "c": 0.18887,
    "h": 334
  },
  "luminance": 0.16171
}

Semantic roles & 50–950 ramp

primary
#B540A4
secondary
#8BC594
accent
#D76450
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B540A4

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

Preview Lab → · Contrast checker → · Palette generator →

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