#B542E2#B542E2

#B542E2 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.7% C 0.239 H 314.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B542E2
RGBrgb(181, 66, 226)
HSLhsl(283, 73%, 57%)
HSVhsv(283, 71%, 89%)
CMYKcmyk(19.9%, 70.8%, 0%, 11.4%)
CIE-LABlab(50.93, 68.94, -60.29)
CIE-LCHlch(50.93, 91.59, 318.83°)
OKLaboklab(60.75% 0.1677 -0.1699)
OKLCHoklch(60.75% 0.239 314.6)
XYZxyz(34.7295, 19.2124, 73.8157)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542E2 #6FE242
analogous
#6542E2 #B542E2 #E242BF
triadic
#B542E2 #E2B542 #42E2B5
tetradic
#B542E2 #E26542 #6FE242 #42BFE2
square
#B542E2 #E26542 #6FE242 #42BFE2
split-complementary
#B542E2 #BFE242 #42E265
monochromatic
#701793 #981FC8 #B542E2 #CA77EA #DFACF2

Accessibility & contrast

On white

4.34
#B542E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#B542E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542E2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542E2#FFFFFF#000000##000000
##B542E21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#3B7CDE
Tritanopia (blue-blind)
#B1648E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b542e2;
/* rgb */ color: rgb(181, 66, 226);
/* oklch */ color: oklch(60.7% 0.239 314.6);
Tailwind
colors: {
  custom: {
    50: '#d080ec',
    500: '#b542e2',
    950: '#000000',
  },
}
SCSS
$custom: #b542e2;
$custom-light: #d080ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b542e2",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 283.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60748,
    "c": 0.23877,
    "h": 314.6
  },
  "luminance": 0.19211
}

Semantic roles & 50–950 ramp

primary
#B542E2
secondary
#B2E09F
accent
#F0386C
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B542E2

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

Preview Lab → · Contrast checker → · Palette generator →

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