#B540B1#B540B1

#B540B1 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.6% C 0.199 H 329.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B540B1
RGBrgb(181, 64, 177)
HSLhsl(302, 48%, 48%)
HSVhsv(302, 65%, 71%)
CMYKcmyk(0%, 64.6%, 2.2%, 29%)
CIE-LABlab(47.84, 60.77, -36.99)
CIE-LCHlch(47.84, 71.14, 328.67°)
OKLaboklab(57.62% 0.171 -0.102)
OKLCHoklch(57.62% 0.199 329.2)
XYZxyz(28.8250, 16.6669, 43.2853)
Luminance0.1666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540B1 #40B544
analogous
#7E40B5 #B540B1 #B54077
triadic
#B540B1 #B1B540 #40B1B5
tetradic
#B540B1 #B57E40 #40B544 #4077B5
square
#B540B1 #B57E40 #40B544 #4077B5
split-complementary
#B540B1 #77B540 #40B57E
monochromatic
#5B2059 #883085 #B540B1 #CA68C6 #DA96D7

Accessibility & contrast

On white

4.85
#B540B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B540B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540B1
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540B1#FFFFFF#000000##FFFFFF
##B540B11.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B4
Deuteranopia (green-blind)
#5F77AE
Tritanopia (blue-blind)
#BB4E73
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b540b1;
/* rgb */ color: rgb(181, 64, 177);
/* oklch */ color: oklch(57.6% 0.199 329.2);
Tailwind
colors: {
  custom: {
    50: '#ce7ec9',
    500: '#b540b1',
    950: '#000000',
  },
}
SCSS
$custom: #b540b1;
$custom-light: #ce7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#b540b1",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 302.051,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57619,
    "c": 0.19909,
    "h": 329.2
  },
  "luminance": 0.16665
}

Semantic roles & 50–950 ramp

primary
#B540B1
secondary
#8BC58D
accent
#D75550
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B540B1

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

Preview Lab → · Contrast checker → · Palette generator →

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