#B540AA#B540AA

#B540AA is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.3% C 0.194 H 331.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#B540AA
RGBrgb(181, 64, 170)
HSLhsl(306, 48%, 48%)
HSVhsv(306, 65%, 71%)
CMYKcmyk(0%, 64.6%, 6.1%, 29%)
CIE-LABlab(47.49, 59.61, -33.42)
CIE-LCHlch(47.49, 68.34, 330.72°)
OKLaboklab(57.25% 0.1704 -0.0917)
OKLCHoklch(57.25% 0.194 331.7)
XYZxyz(28.1451, 16.3949, 39.7046)
Luminance0.1639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540AA #40B54B
analogous
#8540B5 #B540AA #B5406F
triadic
#B540AA #AAB540 #40AAB5
tetradic
#B540AA #B58540 #40B54B #406FB5
square
#B540AA #B58540 #40B54B #406FB5
split-complementary
#B540AA #6FB540 #40B585
monochromatic
#5B2055 #883080 #B540AA #CA68C1 #DA96D3

Accessibility & contrast

On white

4.91
#B540AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#B540AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540AA
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540AA#FFFFFF#000000##FFFFFF
##B540AA1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#6277A7
Tritanopia (blue-blind)
#BC4B6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b540aa;
/* rgb */ color: rgb(181, 64, 170);
/* oklch */ color: oklch(57.3% 0.194 331.7);
Tailwind
colors: {
  custom: {
    50: '#ce7dc3',
    500: '#b540aa',
    950: '#000000',
  },
}
SCSS
$custom: #b540aa;
$custom-light: #ce7dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#b540aa",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 305.641,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57253,
    "c": 0.19351,
    "h": 331.7
  },
  "luminance": 0.16393
}

Semantic roles & 50–950 ramp

primary
#B540AA
secondary
#8BC591
accent
#D75D50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B540AA

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

Preview Lab → · Contrast checker → · Palette generator →

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