#B540BD#B540BD

#B540BD is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.3% C 0.209 H 325.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#B540BD
RGBrgb(181, 64, 189)
HSLhsl(296, 49%, 50%)
HSVhsv(296, 66%, 74%)
CMYKcmyk(4.2%, 66.1%, 0%, 25.9%)
CIE-LABlab(48.47, 62.83, -43.01)
CIE-LCHlch(48.47, 76.14, 325.61°)
OKLaboklab(58.28% 0.1715 -0.1194)
OKLCHoklch(58.28% 0.209 325.2)
XYZxyz(30.0741, 17.1665, 49.8637)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540BD #48BD40
analogous
#7740BD #B540BD #BD4087
triadic
#B540BD #BDB540 #40BDB5
tetradic
#B540BD #BD7740 #48BD40 #4087BD
square
#B540BD #BD7740 #48BD40 #4087BD
split-complementary
#B540BD #87BD40 #40BD77
monochromatic
#5D2162 #89318F #B540BD #C76DCD #D99ADD

Accessibility & contrast

On white

4.74
#B540BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#B540BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540BD
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540BD#FFFFFF#000000##FFFFFF
##B540BD1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276AC1
Deuteranopia (green-blind)
#5878BA
Tritanopia (blue-blind)
#B95379
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b540bd;
/* rgb */ color: rgb(181, 64, 189);
/* oklch */ color: oklch(58.3% 0.209 325.2);
Tailwind
colors: {
  custom: {
    50: '#cf7ed1',
    500: '#b540bd',
    950: '#000000',
  },
}
SCSS
$custom: #b540bd;
$custom-light: #cf7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#b540bd",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 296.16,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5828,
    "c": 0.20898,
    "h": 325.2
  },
  "luminance": 0.17165
}

Semantic roles & 50–950 ramp

primary
#B540BD
secondary
#93C990
accent
#D94F58
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B540BD

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

Preview Lab → · Contrast checker → · Palette generator →

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