#B540BA#B540BA

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

Color values

HEX#B540BA
RGBrgb(181, 64, 186)
HSLhsl(298, 49%, 49%)
HSVhsv(298, 66%, 73%)
CMYKcmyk(2.7%, 65.6%, 0%, 27.1%)
CIE-LABlab(48.31, 62.30, -41.52)
CIE-LCHlch(48.31, 74.87, 326.32°)
OKLaboklab(58.11% 0.1714 -0.1151)
OKLCHoklch(58.11% 0.206 326.1)
XYZxyz(29.7518, 17.0376, 48.1664)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540BA #45BA40
analogous
#7840BA #B540BA #BA4082
triadic
#B540BA #BAB540 #40BAB5
tetradic
#B540BA #BA7840 #45BA40 #4082BA
square
#B540BA #BA7840 #45BA40 #4082BA
split-complementary
#B540BA #82BA40 #40BA78
monochromatic
#5C215F #89308C #B540BA #C86BCC #D999DC

Accessibility & contrast

On white

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

On black

4.41
#B540BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B540BA#FFFFFF#000000##FFFFFF
##B540BA1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BE
Deuteranopia (green-blind)
#5A78B7
Tritanopia (blue-blind)
#BA5278
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b540ba;
/* rgb */ color: rgb(181, 64, 186);
/* oklch */ color: oklch(58.1% 0.206 326.1);
Tailwind
colors: {
  custom: {
    50: '#ce7ecf',
    500: '#b540ba',
    950: '#000000',
  },
}
SCSS
$custom: #b540ba;
$custom-light: #ce7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#b540ba",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 297.541,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58111,
    "c": 0.20647,
    "h": 326.1
  },
  "luminance": 0.17036
}

Semantic roles & 50–950 ramp

primary
#B540BA
secondary
#91C88E
accent
#D84F55
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #B540BA

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

Preview Lab → · Contrast checker → · Palette generator →

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