#B540B9#B540B9

#B540B9 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.206 H 326.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B540B9
RGBrgb(181, 64, 185)
HSLhsl(298, 49%, 49%)
HSVhsv(298, 65%, 73%)
CMYKcmyk(2.2%, 65.4%, 0%, 27.5%)
CIE-LABlab(48.25, 62.13, -41.02)
CIE-LCHlch(48.25, 74.45, 326.57°)
OKLaboklab(58.06% 0.1714 -0.1136)
OKLCHoklch(58.06% 0.206 326.5)
XYZxyz(29.6459, 16.9952, 47.6085)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540B9 #44B940
analogous
#7940B9 #B540B9 #B94081
triadic
#B540B9 #B9B540 #40B9B5
tetradic
#B540B9 #B97940 #44B940 #4081B9
square
#B540B9 #B97940 #44B940 #4081B9
split-complementary
#B540B9 #81B940 #40B979
monochromatic
#5C215E #89308C #B540B9 #C86BCC #D998DB

Accessibility & contrast

On white

4.77
#B540B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B540B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540B9
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540B9#FFFFFF#000000##FFFFFF
##B540B91.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BD
Deuteranopia (green-blind)
#5A78B6
Tritanopia (blue-blind)
#BA5177
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b540b9;
/* rgb */ color: rgb(181, 64, 185);
/* oklch */ color: oklch(58.1% 0.206 326.5);
Tailwind
colors: {
  custom: {
    50: '#ce7ece',
    500: '#b540b9',
    950: '#000000',
  },
}
SCSS
$custom: #b540b9;
$custom-light: #ce7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#b540b9",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 298.017,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58056,
    "c": 0.20564,
    "h": 326.5
  },
  "luminance": 0.16993
}

Semantic roles & 50–950 ramp

primary
#B540B9
secondary
#90C78E
accent
#D85054
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B540B9

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

Preview Lab → · Contrast checker → · Palette generator →

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