#B540CF#B540CF

#B540CF is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.3% C 0.224 H 319.7°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#B540CF
RGBrgb(181, 64, 207)
HSLhsl(289, 60%, 53%)
HSVhsv(289, 69%, 81%)
CMYKcmyk(12.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(49.49, 66.08, -51.78)
CIE-LCHlch(49.49, 83.95, 321.92°)
OKLaboklab(59.35% 0.1712 -0.145)
OKLCHoklch(59.35% 0.224 319.7)
XYZxyz(32.1505, 17.9971, 60.7997)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540CF #5ACF40
analogous
#6D40CF #B540CF #CF40A1
triadic
#B540CF #CFB540 #40CFB5
tetradic
#B540CF #CF6D40 #5ACF40 #40A1CF
square
#B540CF #CF6D40 #5ACF40 #40A1CF
split-complementary
#B540CF #A1CF40 #40CF6D
monochromatic
#671E77 #912AA8 #B540CF #C871DB #DBA2E8

Accessibility & contrast

On white

4.57
#B540CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#B540CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540CF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540CF#FFFFFF#000000##000000
##B540CF1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#4C7ACC
Tritanopia (blue-blind)
#B55B83
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b540cf;
/* rgb */ color: rgb(181, 64, 207);
/* oklch */ color: oklch(59.3% 0.224 319.7);
Tailwind
colors: {
  custom: {
    50: '#cf7fde',
    500: '#b540cf',
    950: '#000000',
  },
}
SCSS
$custom: #b540cf;
$custom-light: #cf7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#b540cf",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 289.091,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59345,
    "c": 0.22434,
    "h": 319.7
  },
  "luminance": 0.17996
}

Semantic roles & 50–950 ramp

primary
#B540CF
secondary
#A2D497
accent
#E34562
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B540CF

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

Preview Lab → · Contrast checker → · Palette generator →

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