#B542D2#B542D2

#B542D2 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.7% C 0.225 H 318.8°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#B542D2
RGBrgb(181, 66, 210)
HSLhsl(288, 62%, 54%)
HSVhsv(288, 69%, 82%)
CMYKcmyk(13.8%, 68.6%, 0%, 17.6%)
CIE-LABlab(49.95, 65.87, -52.77)
CIE-LCHlch(49.95, 84.40, 321.30°)
OKLaboklab(59.73% 0.169 -0.1479)
OKLCHoklch(59.73% 0.225 318.8)
XYZxyz(32.6356, 18.3748, 62.7879)
Luminance0.1837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542D2 #5FD242
analogous
#6D42D2 #B542D2 #D242A7
triadic
#B542D2 #D2B542 #42D2B5
tetradic
#B542D2 #D26D42 #5FD242 #42A7D2
square
#B542D2 #D26D42 #5FD242 #42A7D2
split-complementary
#B542D2 #A7D242 #42D26D
monochromatic
#691E7C #9329AD #B542D2 #C873DE #DCA5EA

Accessibility & contrast

On white

4.49
#B542D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#B542D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542D2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542D2#FFFFFF#000000##000000
##B542D21.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#4B7BCF
Tritanopia (blue-blind)
#B55D85
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b542d2;
/* rgb */ color: rgb(181, 66, 210);
/* oklch */ color: oklch(59.7% 0.225 318.8);
Tailwind
colors: {
  custom: {
    50: '#cf80e0',
    500: '#b542d2',
    950: '#000000',
  },
}
SCSS
$custom: #b542d2;
$custom-light: #cf80e0;
$custom-dark: #000000;
JSON
{
  "hex": "#b542d2",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 287.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59728,
    "c": 0.22457,
    "h": 318.8
  },
  "luminance": 0.18373
}

Semantic roles & 50–950 ramp

primary
#B542D2
secondary
#A6D799
accent
#E54364
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B542D2

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

Preview Lab → · Contrast checker → · Palette generator →

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