#B540D3#B540D3

#B540D3 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.6% C 0.228 H 318.6°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B540D3
RGBrgb(181, 64, 211)
HSLhsl(288, 63%, 54%)
HSVhsv(288, 70%, 83%)
CMYKcmyk(14.2%, 69.7%, 0%, 17.3%)
CIE-LABlab(49.73, 66.83, -53.68)
CIE-LCHlch(49.73, 85.72, 321.23°)
OKLaboklab(59.59% 0.171 -0.1506)
OKLCHoklch(59.59% 0.228 318.6)
XYZxyz(32.6457, 18.1952, 63.4078)
Luminance0.1819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540D3 #5ED340
analogous
#6C40D3 #B540D3 #D340A8
triadic
#B540D3 #D3B540 #40D3B5
tetradic
#B540D3 #D36C40 #5ED340 #40A8D3
square
#B540D3 #D36C40 #5ED340 #40A8D3
split-complementary
#B540D3 #A8D340 #40D36C
monochromatic
#691D7C #9228AE #B540D3 #C872DE #DCA3EA

Accessibility & contrast

On white

4.53
#B540D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#B540D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540D3
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540D3#FFFFFF#000000##000000
##B540D31.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD7
Deuteranopia (green-blind)
#487AD0
Tritanopia (blue-blind)
#B55C85
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b540d3;
/* rgb */ color: rgb(181, 64, 211);
/* oklch */ color: oklch(59.6% 0.228 318.6);
Tailwind
colors: {
  custom: {
    50: '#cf7fe1',
    500: '#b540d3',
    950: '#000000',
  },
}
SCSS
$custom: #b540d3;
$custom-light: #cf7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#b540d3",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 287.755,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59593,
    "c": 0.22783,
    "h": 318.6
  },
  "luminance": 0.18194
}

Semantic roles & 50–950 ramp

primary
#B540D3
secondary
#A5D798
accent
#E64264
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B540D3

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

Preview Lab → · Contrast checker → · Palette generator →

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