#B540CB#B540CB

#B540CB is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.221 H 320.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B540CB
RGBrgb(181, 64, 203)
HSLhsl(291, 57%, 52%)
HSVhsv(291, 68%, 80%)
CMYKcmyk(10.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(49.26, 65.34, -49.85)
CIE-LCHlch(49.26, 82.19, 322.66°)
OKLaboklab(59.1% 0.1714 -0.1393)
OKLCHoklch(59.1% 0.221 320.9)
XYZxyz(31.6677, 17.8040, 58.2568)
Luminance0.1780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540CB #56CB40
analogous
#7040CB #B540CB #CB409B
triadic
#B540CB #CBB540 #40CBB5
tetradic
#B540CB #CB7040 #56CB40 #409BCB
square
#B540CB #CB7040 #56CB40 #409BCB
split-complementary
#B540CB #9BCB40 #40CB70
monochromatic
#651F72 #8F2CA2 #B540CB #C870D8 #DAA0E5

Accessibility & contrast

On white

4.60
#B540CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#B540CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B540CB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540CB#FFFFFF#000000##FFFFFF
##B540CB1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076DCF
Deuteranopia (green-blind)
#4F79C8
Tritanopia (blue-blind)
#B65981
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b540cb;
/* rgb */ color: rgb(181, 64, 203);
/* oklch */ color: oklch(59.1% 0.221 320.9);
Tailwind
colors: {
  custom: {
    50: '#cf7edb',
    500: '#b540cb',
    950: '#000000',
  },
}
SCSS
$custom: #b540cb;
$custom-light: #cf7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#b540cb",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 290.504,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59101,
    "c": 0.22089,
    "h": 320.9
  },
  "luminance": 0.17802
}

Semantic roles & 50–950 ramp

primary
#B540CB
secondary
#9FD295
accent
#E04760
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B540CB

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

Preview Lab → · Contrast checker → · Palette generator →

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