#B540BB#B540BB

#B540BB is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.2% C 0.207 H 325.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B540BB
RGBrgb(181, 64, 187)
HSLhsl(297, 49%, 49%)
HSVhsv(297, 66%, 73%)
CMYKcmyk(3.2%, 65.8%, 0%, 26.7%)
CIE-LABlab(48.36, 62.48, -42.01)
CIE-LCHlch(48.36, 75.29, 326.08°)
OKLaboklab(58.17% 0.1715 -0.1165)
OKLCHoklch(58.17% 0.207 325.8)
XYZxyz(29.8585, 17.0803, 48.7282)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540BB #46BB40
analogous
#7840BB #B540BB #BB4084
triadic
#B540BB #BBB540 #40BBB5
tetradic
#B540BB #BB7840 #46BB40 #4084BB
square
#B540BB #BB7840 #46BB40 #4084BB
split-complementary
#B540BB #84BB40 #40BB78
monochromatic
#5D2160 #89308D #B540BB #C86CCD #D999DC

Accessibility & contrast

On white

4.76
#B540BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#B540BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540BB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540BB#FFFFFF#000000##FFFFFF
##B540BB1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2969BF
Deuteranopia (green-blind)
#5978B8
Tritanopia (blue-blind)
#B95278
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b540bb;
/* rgb */ color: rgb(181, 64, 187);
/* oklch */ color: oklch(58.2% 0.207 325.8);
Tailwind
colors: {
  custom: {
    50: '#ce7ed0',
    500: '#b540bb',
    950: '#000000',
  },
}
SCSS
$custom: #b540bb;
$custom-light: #ce7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#b540bb",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 297.073,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58167,
    "c": 0.2073,
    "h": 325.8
  },
  "luminance": 0.17078
}

Semantic roles & 50–950 ramp

primary
#B540BB
secondary
#92C88F
accent
#D94F56
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B540BB

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

Preview Lab → · Contrast checker → · Palette generator →

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