#B540B5#B540B5

#B540B5 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.8% C 0.202 H 327.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#B540B5
RGBrgb(181, 64, 181)
HSLhsl(300, 48%, 48%)
HSVhsv(300, 65%, 71%)
CMYKcmyk(0%, 64.6%, 0%, 29%)
CIE-LABlab(48.04, 61.44, -39.01)
CIE-LCHlch(48.04, 72.78, 327.59°)
OKLaboklab(57.84% 0.1712 -0.1078)
OKLCHoklch(57.84% 0.202 327.8)
XYZxyz(29.2295, 16.8287, 45.4158)
Luminance0.1683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540B5 #40B540
analogous
#7A40B5 #B540B5 #B5407A
triadic
#B540B5 #B5B540 #40B5B5
tetradic
#B540B5 #B57A40 #40B540 #407AB5
square
#B540B5 #B57A40 #40B540 #407AB5
split-complementary
#B540B5 #7AB540 #40B57A
monochromatic
#5B205B #883088 #B540B5 #CA68CA #DA96DA

Accessibility & contrast

On white

4.81
#B540B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#B540B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B540B5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540B5#FFFFFF#000000##FFFFFF
##B540B51.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B8
Deuteranopia (green-blind)
#5D77B2
Tritanopia (blue-blind)
#BA5075
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b540b5;
/* rgb */ color: rgb(181, 64, 181);
/* oklch */ color: oklch(57.8% 0.202 327.8);
Tailwind
colors: {
  custom: {
    50: '#ce7ecb',
    500: '#b540b5',
    950: '#000000',
  },
}
SCSS
$custom: #b540b5;
$custom-light: #ce7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#b540b5",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 300,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57835,
    "c": 0.20234,
    "h": 327.8
  },
  "luminance": 0.16827
}

Semantic roles & 50–950 ramp

primary
#B540B5
secondary
#8BC58B
accent
#D75050
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B540B5

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

Preview Lab → · Contrast checker → · Palette generator →

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