#B540E2#B540E2

#B540E2 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.6% C 0.241 H 314.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#B540E2
RGBrgb(181, 64, 226)
HSLhsl(283, 74%, 57%)
HSVhsv(283, 72%, 89%)
CMYKcmyk(19.9%, 71.7%, 0%, 11.4%)
CIE-LABlab(50.67, 69.70, -60.72)
CIE-LCHlch(50.67, 92.44, 318.94°)
OKLaboklab(60.56% 0.1696 -0.1712)
OKLCHoklch(60.56% 0.241 314.7)
XYZxyz(34.6146, 18.9828, 73.7774)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B540E2 #6DE240
analogous
#6440E2 #B540E2 #E240BE
triadic
#B540E2 #E2B540 #40E2B5
tetradic
#B540E2 #E26440 #6DE240 #40BEE2
square
#B540E2 #E26440 #6DE240 #40BEE2
split-complementary
#B540E2 #BEE240 #40E264
monochromatic
#6F1692 #981EC7 #B540E2 #CA75EA #DEAAF2

Accessibility & contrast

On white

4.38
#B540E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#B540E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B540E2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B540E2#FFFFFF#000000##000000
##B540E21.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#397CDE
Tritanopia (blue-blind)
#B1638E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b540e2;
/* rgb */ color: rgb(181, 64, 226);
/* oklch */ color: oklch(60.6% 0.241 314.7);
Tailwind
colors: {
  custom: {
    50: '#d07fec',
    500: '#b540e2',
    950: '#000000',
  },
}
SCSS
$custom: #b540e2;
$custom-light: #d07fec;
$custom-dark: #000000;
JSON
{
  "hex": "#b540e2",
  "rgb": {
    "r": 181,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 283.333,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60558,
    "c": 0.241,
    "h": 314.7
  },
  "luminance": 0.18982
}

Semantic roles & 50–950 ramp

primary
#B540E2
secondary
#B0E09E
accent
#F0386B
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B540E2

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

Preview Lab → · Contrast checker → · Palette generator →

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