#B542DC#B542DC

#B542DC is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.4% C 0.233 H 316.1°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B542DC
RGBrgb(181, 66, 220)
HSLhsl(285, 69%, 56%)
HSVhsv(285, 70%, 86%)
CMYKcmyk(17.7%, 70%, 0%, 13.7%)
CIE-LABlab(50.56, 67.78, -57.49)
CIE-LCHlch(50.56, 88.88, 319.69°)
OKLaboklab(60.36% 0.1683 -0.1617)
OKLCHoklch(60.36% 0.233 316.1)
XYZxyz(33.9205, 18.8888, 69.5554)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542DC #69DC42
analogous
#6842DC #B542DC #DC42B6
triadic
#B542DC #DCB542 #42DCB5
tetradic
#B542DC #DC6842 #69DC42 #42B6DC
square
#B542DC #DC6842 #69DC42 #42B6DC
split-complementary
#B542DC #B6DC42 #42DC68
monochromatic
#6E1A8A #9723BE #B542DC #C976E6 #DDA9EF

Accessibility & contrast

On white

4.40
#B542DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#B542DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542DC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542DC#FFFFFF#000000##000000
##B542DC1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#417CD9
Tritanopia (blue-blind)
#B3618B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b542dc;
/* rgb */ color: rgb(181, 66, 220);
/* oklch */ color: oklch(60.4% 0.233 316.1);
Tailwind
colors: {
  custom: {
    50: '#cf80e8',
    500: '#b542dc',
    950: '#000000',
  },
}
SCSS
$custom: #b542dc;
$custom-light: #cf80e8;
$custom-dark: #000000;
JSON
{
  "hex": "#b542dc",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 284.805,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60358,
    "c": 0.23341,
    "h": 316.1
  },
  "luminance": 0.18887
}

Semantic roles & 50–950 ramp

primary
#B542DC
secondary
#ADDD9D
accent
#EC3C69
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B542DC

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

Preview Lab → · Contrast checker → · Palette generator →

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