#B540A7#B540A7

#B540A7 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.1% C 0.191 H 332.8°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B540A7
RGBrgb(181, 64, 167)
HSLhsl(307, 48%, 48%)
HSVhsv(307, 65%, 71%)
CMYKcmyk(0%, 64.6%, 7.7%, 29%)
CIE-LABlab(47.34, 59.12, -31.88)
CIE-LCHlch(47.34, 67.17, 331.67°)
OKLaboklab(57.1% 0.1701 -0.0872)
OKLCHoklch(57.1% 0.191 332.8)
XYZxyz(27.8646, 16.2827, 38.2270)
Luminance0.1628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540A7 #40B54E
analogous
#8840B5 #B540A7 #B5406D
triadic
#B540A7 #A7B540 #40A7B5
tetradic
#B540A7 #B58840 #40B54E #406DB5
square
#B540A7 #B58840 #40B54E #406DB5
split-complementary
#B540A7 #6DB540 #40B588
monochromatic
#5B2054 #88307D #B540A7 #CA68BE #DA96D2

Accessibility & contrast

On white

4.93
#B540A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B540A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540A7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540A7#FFFFFF#000000##FFFFFF
##B540A71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AA
Deuteranopia (green-blind)
#6376A4
Tritanopia (blue-blind)
#BD4A6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b540a7;
/* rgb */ color: rgb(181, 64, 167);
/* oklch */ color: oklch(57.1% 0.191 332.8);
Tailwind
colors: {
  custom: {
    50: '#ce7dc1',
    500: '#b540a7',
    950: '#000000',
  },
}
SCSS
$custom: #b540a7;
$custom-light: #ce7dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b540a7",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 307.179,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.571,
    "c": 0.19117,
    "h": 332.8
  },
  "luminance": 0.16281
}

Semantic roles & 50–950 ramp

primary
#B540A7
secondary
#8BC592
accent
#D76150
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B540A7

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

Preview Lab → · Contrast checker → · Palette generator →

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