#B540A3#B540A3

#B540A3 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.9% C 0.188 H 334.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B540A3
RGBrgb(181, 64, 163)
HSLhsl(309, 48%, 48%)
HSVhsv(309, 65%, 71%)
CMYKcmyk(0%, 64.6%, 9.9%, 29%)
CIE-LABlab(47.15, 58.49, -29.81)
CIE-LCHlch(47.15, 65.64, 333.00°)
OKLaboklab(56.9% 0.1696 -0.0813)
OKLCHoklch(56.9% 0.188 334.4)
XYZxyz(27.5005, 16.1371, 36.3096)
Luminance0.1613 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540A3 #40B552
analogous
#8C40B5 #B540A3 #B54068
triadic
#B540A3 #A3B540 #40A3B5
tetradic
#B540A3 #B58C40 #40B552 #4068B5
square
#B540A3 #B58C40 #40B552 #4068B5
split-complementary
#B540A3 #68B540 #40B58C
monochromatic
#5B2052 #88307A #B540A3 #CA68BB #DA96CF

Accessibility & contrast

On white

4.97
#B540A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B540A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540A3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540A3#FFFFFF#000000##FFFFFF
##B540A31.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F65A6
Deuteranopia (green-blind)
#6576A0
Tritanopia (blue-blind)
#BD486C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b540a3;
/* rgb */ color: rgb(181, 64, 163);
/* oklch */ color: oklch(56.9% 0.188 334.4);
Tailwind
colors: {
  custom: {
    50: '#ce7dbe',
    500: '#b540a3',
    950: '#000000',
  },
}
SCSS
$custom: #b540a3;
$custom-light: #ce7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#b540a3",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 309.231,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.569,
    "c": 0.18811,
    "h": 334.4
  },
  "luminance": 0.16135
}

Semantic roles & 50–950 ramp

primary
#B540A3
secondary
#8BC594
accent
#D76550
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B540A3

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

Preview Lab → · Contrast checker → · Palette generator →

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