#B540C0#B540C0

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

Color values

HEX#B540C0
RGBrgb(181, 64, 192)
HSLhsl(295, 50%, 50%)
HSVhsv(295, 67%, 75%)
CMYKcmyk(5.7%, 66.7%, 0%, 24.7%)
CIE-LABlab(48.63, 63.36, -44.49)
CIE-LCHlch(48.63, 77.42, 324.92°)
OKLaboklab(58.45% 0.1716 -0.1237)
OKLCHoklch(58.45% 0.212 324.2)
XYZxyz(30.4031, 17.2981, 51.5964)
Luminance0.1730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540C0 #4BC040
analogous
#7540C0 #B540C0 #C0408B
triadic
#B540C0 #C0B540 #40C0B5
tetradic
#B540C0 #C07540 #4BC040 #408BC0
square
#B540C0 #C07540 #4BC040 #408BC0
split-complementary
#B540C0 #8BC040 #40C075
monochromatic
#5F2164 #8A3092 #B540C0 #C76ECF #D99CDE

Accessibility & contrast

On white

4.71
#B540C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B540C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540C0
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540C0#FFFFFF#000000##FFFFFF
##B540C01.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226AC4
Deuteranopia (green-blind)
#5678BD
Tritanopia (blue-blind)
#B8547B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b540c0;
/* rgb */ color: rgb(181, 64, 192);
/* oklch */ color: oklch(58.5% 0.211 324.2);
Tailwind
colors: {
  custom: {
    50: '#cf7ed3',
    500: '#b540c0',
    950: '#000000',
  },
}
SCSS
$custom: #b540c0;
$custom-light: #cf7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#b540c0",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 294.844,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58452,
    "c": 0.2115,
    "h": 324.2
  },
  "luminance": 0.17296
}

Semantic roles & 50–950 ramp

primary
#B540C0
secondary
#96CB91
accent
#DA4E5A
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B540C0

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

Preview Lab → · Contrast checker → · Palette generator →

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