#B540CC#B540CC

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

Color values

HEX#B540CC
RGBrgb(181, 64, 204)
HSLhsl(290, 58%, 53%)
HSVhsv(290, 69%, 80%)
CMYKcmyk(11.3%, 68.6%, 0%, 20%)
CIE-LABlab(49.32, 65.53, -50.33)
CIE-LCHlch(49.32, 82.63, 322.47°)
OKLaboklab(59.16% 0.1714 -0.1408)
OKLCHoklch(59.16% 0.222 320.6)
XYZxyz(31.7872, 17.8518, 58.8864)
Luminance0.1785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540CC #57CC40
analogous
#6F40CC #B540CC #CC409D
triadic
#B540CC #CCB540 #40CCB5
tetradic
#B540CC #CC6F40 #57CC40 #409DCC
square
#B540CC #CC6F40 #57CC40 #409DCC
split-complementary
#B540CC #9DCC40 #40CC6F
monochromatic
#651F73 #902CA3 #B540CC #C870D9 #DAA1E6

Accessibility & contrast

On white

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

On black

4.57
#B540CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B540CC#FFFFFF#000000##FFFFFF
##B540CC1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#026DD0
Deuteranopia (green-blind)
#4E79C9
Tritanopia (blue-blind)
#B65981
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b540cc;
/* rgb */ color: rgb(181, 64, 204);
/* oklch */ color: oklch(59.2% 0.222 320.6);
Tailwind
colors: {
  custom: {
    50: '#cf7edc',
    500: '#b540cc',
    950: '#000000',
  },
}
SCSS
$custom: #b540cc;
$custom-light: #cf7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#b540cc",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 290.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.59162,
    "c": 0.22175,
    "h": 320.6
  },
  "luminance": 0.1785
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B540CC

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

Preview Lab → · Contrast checker → · Palette generator →

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