#B542E1#B542E1

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

Color values

HEX#B542E1
RGBrgb(181, 66, 225)
HSLhsl(283, 73%, 57%)
HSVhsv(283, 71%, 88%)
CMYKcmyk(19.6%, 70.7%, 0%, 11.8%)
CIE-LABlab(50.87, 68.75, -59.83)
CIE-LCHlch(50.87, 91.13, 318.97°)
OKLaboklab(60.68% 0.1678 -0.1686)
OKLCHoklch(60.68% 0.238 314.9)
XYZxyz(34.5926, 19.1577, 73.0951)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542E1 #6EE142
analogous
#6542E1 #B542E1 #E142BE
triadic
#B542E1 #E1B542 #42E1B5
tetradic
#B542E1 #E16542 #6EE142 #42BEE1
square
#B542E1 #E16542 #6EE142 #42BEE1
split-complementary
#B542E1 #BEE142 #42E165
monochromatic
#701792 #981FC6 #B542E1 #CA77E9 #DEACF2

Accessibility & contrast

On white

4.35
#B542E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#B542E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542E1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542E1#FFFFFF#000000##000000
##B542E11.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#3C7CDD
Tritanopia (blue-blind)
#B1638E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b542e1;
/* rgb */ color: rgb(181, 66, 225);
/* oklch */ color: oklch(60.7% 0.238 314.9);
Tailwind
colors: {
  custom: {
    50: '#d080eb',
    500: '#b542e1',
    950: '#000000',
  },
}
SCSS
$custom: #b542e1;
$custom-light: #d080eb;
$custom-dark: #000000;
JSON
{
  "hex": "#b542e1",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 283.396,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60683,
    "c": 0.23787,
    "h": 314.9
  },
  "luminance": 0.19156
}

Semantic roles & 50–950 ramp

primary
#B542E1
secondary
#B1E09F
accent
#EF386B
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B542E1

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

Preview Lab → · Contrast checker → · Palette generator →

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