#B542EA#B542EA

#B542EA is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.3% C 0.246 H 312.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B542EA
RGBrgb(181, 66, 234)
HSLhsl(281, 80%, 59%)
HSVhsv(281, 72%, 92%)
CMYKcmyk(22.6%, 71.8%, 0%, 8.2%)
CIE-LABlab(51.45, 70.53, -63.97)
CIE-LCHlch(51.45, 95.22, 317.79°)
OKLaboklab(61.28% 0.1668 -0.1807)
OKLCHoklch(61.28% 0.246 312.7)
XYZxyz(35.8529, 19.6618, 79.7324)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542EA #77EA42
analogous
#6142EA #B542EA #EA42CB
triadic
#B542EA #EAB542 #42EAB5
tetradic
#B542EA #EA6142 #77EA42 #42CBEA
square
#B542EA #EA6142 #77EA42 #42CBEA
split-complementary
#B542EA #CBEA42 #42EA61
monochromatic
#7312A0 #9B18D7 #B542EA #CB79F0 #E0B0F6

Accessibility & contrast

On white

4.26
#B542EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#B542EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542EA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542EA#FFFFFF#000000##000000
##B542EA1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#307DE6
Tritanopia (blue-blind)
#AF6793
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b542ea;
/* rgb */ color: rgb(181, 66, 234);
/* oklch */ color: oklch(61.3% 0.246 312.7);
Tailwind
colors: {
  custom: {
    50: '#d080f2',
    500: '#b542ea',
    950: '#000000',
  },
}
SCSS
$custom: #b542ea;
$custom-light: #d080f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b542ea",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 281.071,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61281,
    "c": 0.24593,
    "h": 312.7
  },
  "luminance": 0.19661
}

Semantic roles & 50–950 ramp

primary
#B542EA
secondary
#B8E5A3
accent
#F63170
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #B542EA

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

Preview Lab → · Contrast checker → · Palette generator →

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