#B542D3#B542D3

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

Color values

HEX#B542D3
RGBrgb(181, 66, 211)
HSLhsl(288, 62%, 54%)
HSVhsv(288, 69%, 83%)
CMYKcmyk(14.2%, 68.7%, 0%, 17.3%)
CIE-LABlab(50.01, 66.06, -53.24)
CIE-LCHlch(50.01, 84.84, 321.13°)
OKLaboklab(59.79% 0.169 -0.1493)
OKLCHoklch(59.79% 0.225 318.5)
XYZxyz(32.7605, 18.4248, 63.4461)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542D3 #60D342
analogous
#6D42D3 #B542D3 #D342A9
triadic
#B542D3 #D3B542 #42D3B5
tetradic
#B542D3 #D36D42 #60D342 #42A9D3
square
#B542D3 #D36D42 #60D342 #42A9D3
split-complementary
#B542D3 #A9D342 #42D36D
monochromatic
#6A1D7D #9329AF #B542D3 #C874DF #DCA5EA

Accessibility & contrast

On white

4.48
#B542D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#B542D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542D3
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542D3#FFFFFF#000000##000000
##B542D31.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD7
Deuteranopia (green-blind)
#4A7BD0
Tritanopia (blue-blind)
#B55D86
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b542d3;
/* rgb */ color: rgb(181, 66, 211);
/* oklch */ color: oklch(59.8% 0.225 318.5);
Tailwind
colors: {
  custom: {
    50: '#cf80e1',
    500: '#b542d3',
    950: '#000000',
  },
}
SCSS
$custom: #b542d3;
$custom-light: #cf80e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b542d3",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 287.586,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5979,
    "c": 0.22545,
    "h": 318.5
  },
  "luminance": 0.18423
}

Semantic roles & 50–950 ramp

primary
#B542D3
secondary
#A6D79A
accent
#E54264
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B542D3

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

Preview Lab → · Contrast checker → · Palette generator →

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