#B540D0#B540D0

#B540D0 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.4% C 0.225 H 319.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B540D0
RGBrgb(181, 64, 208)
HSLhsl(289, 61%, 53%)
HSVhsv(289, 69%, 82%)
CMYKcmyk(13%, 69.2%, 0%, 18.4%)
CIE-LABlab(49.55, 66.27, -52.25)
CIE-LCHlch(49.55, 84.39, 321.74°)
OKLaboklab(59.41% 0.1712 -0.1464)
OKLCHoklch(59.41% 0.225 319.5)
XYZxyz(32.2732, 18.0462, 61.4456)
Luminance0.1804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540D0 #5BD040
analogous
#6D40D0 #B540D0 #D040A3
triadic
#B540D0 #D0B540 #40D0B5
tetradic
#B540D0 #D06D40 #5BD040 #40A3D0
square
#B540D0 #D06D40 #5BD040 #40A3D0
split-complementary
#B540D0 #A3D040 #40D06D
monochromatic
#671E78 #912AA9 #B540D0 #C871DC #DBA2E8

Accessibility & contrast

On white

4.56
#B540D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#B540D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540D0
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540D0#FFFFFF#000000##000000
##B540D01.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#006ED4
Deuteranopia (green-blind)
#4B7ACD
Tritanopia (blue-blind)
#B55B84
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b540d0;
/* rgb */ color: rgb(181, 64, 208);
/* oklch */ color: oklch(59.4% 0.225 319.5);
Tailwind
colors: {
  custom: {
    50: '#cf7fdf',
    500: '#b540d0',
    950: '#000000',
  },
}
SCSS
$custom: #b540d0;
$custom-light: #cf7fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#b540d0",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 288.75,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59407,
    "c": 0.22521,
    "h": 319.5
  },
  "luminance": 0.18045
}

Semantic roles & 50–950 ramp

primary
#B540D0
secondary
#A3D597
accent
#E44462
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B540D0

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

Preview Lab → · Contrast checker → · Palette generator →

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