#B540DB#B540DB

#B540DB is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.1% C 0.235 H 316.5°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B540DB
RGBrgb(181, 64, 219)
HSLhsl(285, 68%, 55%)
HSVhsv(285, 71%, 86%)
CMYKcmyk(17.4%, 70.8%, 0%, 14.1%)
CIE-LABlab(50.22, 68.35, -57.46)
CIE-LCHlch(50.22, 89.30, 319.95°)
OKLaboklab(60.1% 0.1704 -0.1616)
OKLCHoklch(60.1% 0.235 316.5)
XYZxyz(33.6737, 18.6064, 68.8217)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540DB #66DB40
analogous
#6740DB #B540DB #DB40B4
triadic
#B540DB #DBB540 #40DBB5
tetradic
#B540DB #DB6740 #66DB40 #40B4DB
square
#B540DB #DB6740 #66DB40 #40B4DB
split-complementary
#B540DB #B4DB40 #40DB67
monochromatic
#6C1987 #9523BB #B540DB #C973E5 #DDA7EE

Accessibility & contrast

On white

4.45
#B540DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#B540DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540DB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540DB#FFFFFF#000000##000000
##B540DB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#417BD7
Tritanopia (blue-blind)
#B3608A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b540db;
/* rgb */ color: rgb(181, 64, 219);
/* oklch */ color: oklch(60.1% 0.235 316.5);
Tailwind
colors: {
  custom: {
    50: '#cf7fe7',
    500: '#b540db',
    950: '#000000',
  },
}
SCSS
$custom: #b540db;
$custom-light: #cf7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#b540db",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 285.29,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60101,
    "c": 0.23483,
    "h": 316.5
  },
  "luminance": 0.18605
}

Semantic roles & 50–950 ramp

primary
#B540DB
secondary
#ABDC9B
accent
#EB3D67
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B540DB

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

Preview Lab → · Contrast checker → · Palette generator →

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