#B542D6#B542D6

#B542D6 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.0% C 0.228 H 317.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B542D6
RGBrgb(181, 66, 214)
HSLhsl(287, 64%, 55%)
HSVhsv(287, 69%, 84%)
CMYKcmyk(15.4%, 69.2%, 0%, 16.1%)
CIE-LABlab(50.19, 66.62, -54.67)
CIE-LCHlch(50.19, 86.18, 320.63°)
OKLaboklab(59.98% 0.1688 -0.1534)
OKLCHoklch(59.98% 0.228 317.7)
XYZxyz(33.1401, 18.5767, 65.4453)
Luminance0.1857 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542D6 #63D642
analogous
#6B42D6 #B542D6 #D642AD
triadic
#B542D6 #D6B542 #42D6B5
tetradic
#B542D6 #D66B42 #63D642 #42ADD6
square
#B542D6 #D66B42 #63D642 #42ADD6
split-complementary
#B542D6 #ADD642 #42D66B
monochromatic
#6B1C82 #9427B4 #B542D6 #C974E1 #DCA7EC

Accessibility & contrast

On white

4.45
#B542D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#B542D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542D6
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542D6#FFFFFF#000000##000000
##B542D61.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DA
Deuteranopia (green-blind)
#477BD3
Tritanopia (blue-blind)
#B45F87
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b542d6;
/* rgb */ color: rgb(181, 66, 214);
/* oklch */ color: oklch(60.0% 0.228 317.7);
Tailwind
colors: {
  custom: {
    50: '#cf80e3',
    500: '#b542d6',
    950: '#000000',
  },
}
SCSS
$custom: #b542d6;
$custom-light: #cf80e3;
$custom-dark: #000000;
JSON
{
  "hex": "#b542d6",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 286.622,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59977,
    "c": 0.22809,
    "h": 317.7
  },
  "luminance": 0.18575
}

Semantic roles & 50–950 ramp

primary
#B542D6
secondary
#A9D99B
accent
#E74066
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B15
muted
#837C84

Preview Lab

Preview with #B542D6

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

Preview Lab → · Contrast checker → · Palette generator →

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