#B540A1#B540A1

#B540A1 is a mid, vivid pink. Relative luminance 0.161; OKLCH L 56.8% C 0.187 H 335.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B540A1
RGBrgb(181, 64, 161)
HSLhsl(310, 48%, 48%)
HSVhsv(310, 65%, 71%)
CMYKcmyk(0%, 64.6%, 11%, 29%)
CIE-LABlab(47.06, 58.17, -28.76)
CIE-LCHlch(47.06, 64.90, 333.69°)
OKLaboklab(56.8% 0.1694 -0.0783)
OKLCHoklch(56.8% 0.187 335.2)
XYZxyz(27.3227, 16.0660, 35.3733)
Luminance0.1606 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540A1 #40B554
analogous
#8E40B5 #B540A1 #B54067
triadic
#B540A1 #A1B540 #40A1B5
tetradic
#B540A1 #B58E40 #40B554 #4067B5
square
#B540A1 #B58E40 #40B554 #4067B5
split-complementary
#B540A1 #67B540 #40B58E
monochromatic
#5B2051 #883079 #B540A1 #CA68B9 #DA96CE

Accessibility & contrast

On white

4.98
#B540A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B540A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540A1
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540A1#FFFFFF#000000##FFFFFF
##B540A11.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4064A4
Deuteranopia (green-blind)
#66769E
Tritanopia (blue-blind)
#BE486B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b540a1;
/* rgb */ color: rgb(181, 64, 161);
/* oklch */ color: oklch(56.8% 0.187 335.2);
Tailwind
colors: {
  custom: {
    50: '#ce7dbd',
    500: '#b540a1',
    950: '#000000',
  },
}
SCSS
$custom: #b540a1;
$custom-light: #ce7dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b540a1",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 310.256,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56802,
    "c": 0.1866,
    "h": 335.2
  },
  "luminance": 0.16064
}

Semantic roles & 50–950 ramp

primary
#B540A1
secondary
#8BC595
accent
#D76850
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B540A1

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

Preview Lab → · Contrast checker → · Palette generator →

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