#B540C1#B540C1

#B540C1 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.5% C 0.212 H 323.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B540C1
RGBrgb(181, 64, 193)
HSLhsl(294, 51%, 50%)
HSVhsv(294, 67%, 76%)
CMYKcmyk(6.2%, 66.8%, 0%, 24.3%)
CIE-LABlab(48.69, 63.54, -44.98)
CIE-LCHlch(48.69, 77.85, 324.70°)
OKLaboklab(58.51% 0.1716 -0.1251)
OKLCHoklch(58.51% 0.212 323.9)
XYZxyz(30.5142, 17.3426, 52.1819)
Luminance0.1734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540C1 #4CC140
analogous
#7540C1 #B540C1 #C1408C
triadic
#B540C1 #C1B540 #40C1B5
tetradic
#B540C1 #C17540 #4CC140 #408CC1
square
#B540C1 #C17540 #4CC140 #408CC1
split-complementary
#B540C1 #8CC140 #40C175
monochromatic
#5F2166 #8B3094 #B540C1 #C76ED0 #D99CDF

Accessibility & contrast

On white

4.70
#B540C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#B540C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540C1
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540C1#FFFFFF#000000##FFFFFF
##B540C11.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216BC5
Deuteranopia (green-blind)
#5678BE
Tritanopia (blue-blind)
#B8557B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b540c1;
/* rgb */ color: rgb(181, 64, 193);
/* oklch */ color: oklch(58.5% 0.212 323.9);
Tailwind
colors: {
  custom: {
    50: '#cf7ed4',
    500: '#b540c1',
    950: '#000000',
  },
}
SCSS
$custom: #b540c1;
$custom-light: #cf7ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#b540c1",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 294.419,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5851,
    "c": 0.21234,
    "h": 323.9
  },
  "luminance": 0.17341
}

Semantic roles & 50–950 ramp

primary
#B540C1
secondary
#97CB92
accent
#DA4D5A
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B540C1

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

Preview Lab → · Contrast checker → · Palette generator →

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