#B540B4#B540B4

#B540B4 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.8% C 0.202 H 328.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#B540B4
RGBrgb(181, 64, 180)
HSLhsl(301, 48%, 48%)
HSVhsv(301, 65%, 71%)
CMYKcmyk(0%, 64.6%, 0.6%, 29%)
CIE-LABlab(47.99, 61.27, -38.51)
CIE-LCHlch(47.99, 72.37, 327.85°)
OKLaboklab(57.78% 0.1712 -0.1063)
OKLCHoklch(57.78% 0.202 328.1)
XYZxyz(29.1273, 16.7878, 44.8774)
Luminance0.1679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540B4 #40B541
analogous
#7B40B5 #B540B4 #B54079
triadic
#B540B4 #B4B540 #40B4B5
tetradic
#B540B4 #B57B40 #40B541 #4079B5
square
#B540B4 #B57B40 #40B541 #4079B5
split-complementary
#B540B4 #79B540 #40B57B
monochromatic
#5B205A #883087 #B540B4 #CA68C9 #DA96D9

Accessibility & contrast

On white

4.82
#B540B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#B540B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540B4
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540B4#FFFFFF#000000##FFFFFF
##B540B41.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B7
Deuteranopia (green-blind)
#5D77B1
Tritanopia (blue-blind)
#BB4F75
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b540b4;
/* rgb */ color: rgb(181, 64, 180);
/* oklch */ color: oklch(57.8% 0.202 328.1);
Tailwind
colors: {
  custom: {
    50: '#ce7ecb',
    500: '#b540b4',
    950: '#000000',
  },
}
SCSS
$custom: #b540b4;
$custom-light: #ce7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#b540b4",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 300.513,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57781,
    "c": 0.20153,
    "h": 328.1
  },
  "luminance": 0.16786
}

Semantic roles & 50–950 ramp

primary
#B540B4
secondary
#8BC58C
accent
#D75250
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B540B4

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

Preview Lab → · Contrast checker → · Palette generator →

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