#B540D9#B540D9

#B540D9 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 60.0% C 0.233 H 317.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#B540D9
RGBrgb(181, 64, 217)
HSLhsl(286, 67%, 55%)
HSVhsv(286, 71%, 85%)
CMYKcmyk(16.6%, 70.5%, 0%, 14.9%)
CIE-LABlab(50.10, 67.97, -56.52)
CIE-LCHlch(50.10, 88.40, 320.25°)
OKLaboklab(59.97% 0.1705 -0.1589)
OKLCHoklch(59.97% 0.233 317)
XYZxyz(33.4120, 18.5017, 67.4434)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540D9 #64D940
analogous
#6840D9 #B540D9 #D940B1
triadic
#B540D9 #D9B540 #40D9B5
tetradic
#B540D9 #D96840 #64D940 #40B1D9
square
#B540D9 #D96840 #64D940 #40B1D9
split-complementary
#B540D9 #B1D940 #40D968
monochromatic
#6B1A84 #9524B7 #B540D9 #C973E3 #DDA6ED

Accessibility & contrast

On white

4.47
#B540D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#B540D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540D9
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540D9#FFFFFF#000000##000000
##B540D91.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#437BD6
Tritanopia (blue-blind)
#B35F89
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b540d9;
/* rgb */ color: rgb(181, 64, 217);
/* oklch */ color: oklch(60.0% 0.233 317.0);
Tailwind
colors: {
  custom: {
    50: '#cf7fe5',
    500: '#b540d9',
    950: '#000000',
  },
}
SCSS
$custom: #b540d9;
$custom-light: #cf7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#b540d9",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 285.882,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59972,
    "c": 0.23307,
    "h": 317
  },
  "luminance": 0.185
}

Semantic roles & 50–950 ramp

primary
#B540D9
secondary
#A9DA9A
accent
#EA3E66
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B540D9

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

Preview Lab → · Contrast checker → · Palette generator →

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