#B540ED#B540ED

#B540ED is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.3% C 0.251 H 312.1°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B540ED
RGBrgb(181, 64, 237)
HSLhsl(281, 83%, 59%)
HSVhsv(281, 73%, 93%)
CMYKcmyk(23.6%, 73%, 0%, 7.1%)
CIE-LABlab(51.39, 71.87, -65.76)
CIE-LCHlch(51.39, 97.42, 317.54°)
OKLaboklab(61.3% 0.1682 -0.186)
OKLCHoklch(61.3% 0.251 312.1)
XYZxyz(36.1727, 19.6060, 81.9832)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540ED #78ED40
analogous
#5F40ED #B540ED #ED40CF
triadic
#B540ED #EDB540 #40EDB5
tetradic
#B540ED #ED5F40 #78ED40 #40CFED
square
#B540ED #ED5F40 #78ED40 #40CFED
split-complementary
#B540ED #CFED40 #40ED5F
monochromatic
#730FA3 #9B15DB #B540ED #CB78F2 #E0B0F8

Accessibility & contrast

On white

4.27
#B540ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#B540ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540ED
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540ED#FFFFFF#000000##000000
##B540ED1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075F2
Deuteranopia (green-blind)
#287DE9
Tritanopia (blue-blind)
#AE6794
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b540ed;
/* rgb */ color: rgb(181, 64, 237);
/* oklch */ color: oklch(61.3% 0.251 312.1);
Tailwind
colors: {
  custom: {
    50: '#d080f4',
    500: '#b540ed',
    950: '#000000',
  },
}
SCSS
$custom: #b540ed;
$custom-light: #d080f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b540ed",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 237
  },
  "hsl": {
    "h": 280.578,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61299,
    "c": 0.25076,
    "h": 312.1
  },
  "luminance": 0.19605
}

Semantic roles & 50–950 ramp

primary
#B540ED
secondary
#B8E6A2
accent
#F92F70
background
#FDF8FF
surface
#FAEFFE
border
#D3CAD6
text
#150B17
muted
#837C85

Preview Lab

Preview with #B540ED

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

Preview Lab → · Contrast checker → · Palette generator →

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