#B540B0#B540B0

#B540B0 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.6% C 0.198 H 329.5°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#B540B0
RGBrgb(181, 64, 176)
HSLhsl(303, 48%, 48%)
HSVhsv(303, 65%, 71%)
CMYKcmyk(0%, 64.6%, 2.8%, 29%)
CIE-LABlab(47.79, 60.60, -36.49)
CIE-LCHlch(47.79, 70.74, 328.95°)
OKLaboklab(57.57% 0.1709 -0.1005)
OKLCHoklch(57.57% 0.198 329.5)
XYZxyz(28.7257, 16.6272, 42.7623)
Luminance0.1663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540B0 #40B545
analogous
#7F40B5 #B540B0 #B54075
triadic
#B540B0 #B0B540 #40B0B5
tetradic
#B540B0 #B57F40 #40B545 #4075B5
square
#B540B0 #B57F40 #40B545 #4075B5
split-complementary
#B540B0 #75B540 #40B57F
monochromatic
#5B2058 #883084 #B540B0 #CA68C6 #DA96D7

Accessibility & contrast

On white

4.86
#B540B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#B540B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540B0
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540B0#FFFFFF#000000##FFFFFF
##B540B01.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3567B3
Deuteranopia (green-blind)
#5F77AD
Tritanopia (blue-blind)
#BB4E72
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b540b0;
/* rgb */ color: rgb(181, 64, 176);
/* oklch */ color: oklch(57.6% 0.198 329.5);
Tailwind
colors: {
  custom: {
    50: '#ce7ec8',
    500: '#b540b0',
    950: '#000000',
  },
}
SCSS
$custom: #b540b0;
$custom-light: #ce7ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#b540b0",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 302.564,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57566,
    "c": 0.19828,
    "h": 329.5
  },
  "luminance": 0.16625
}

Semantic roles & 50–950 ramp

primary
#B540B0
secondary
#8BC58E
accent
#D75650
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B540B0

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

Preview Lab → · Contrast checker → · Palette generator →

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