#B542DB#B542DB

#B542DB is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.3% C 0.233 H 316.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#B542DB
RGBrgb(181, 66, 219)
HSLhsl(285, 68%, 56%)
HSVhsv(285, 70%, 86%)
CMYKcmyk(17.4%, 69.9%, 0%, 14.1%)
CIE-LABlab(50.49, 67.58, -57.03)
CIE-LCHlch(50.49, 88.43, 319.84°)
OKLaboklab(60.29% 0.1684 -0.1604)
OKLCHoklch(60.29% 0.233 316.4)
XYZxyz(33.7885, 18.8360, 68.8600)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542DB #68DB42
analogous
#6842DB #B542DB #DB42B4
triadic
#B542DB #DBB542 #42DBB5
tetradic
#B542DB #DB6842 #68DB42 #42B4DB
square
#B542DB #DB6842 #68DB42 #42B4DB
split-complementary
#B542DB #B4DB42 #42DB68
monochromatic
#6D1A89 #9624BC #B542DB #C975E5 #DDA9EF

Accessibility & contrast

On white

4.41
#B542DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#B542DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542DB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542DB#FFFFFF#000000##000000
##B542DB1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#427BD8
Tritanopia (blue-blind)
#B3618A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b542db;
/* rgb */ color: rgb(181, 66, 219);
/* oklch */ color: oklch(60.3% 0.233 316.4);
Tailwind
colors: {
  custom: {
    50: '#cf80e7',
    500: '#b542db',
    950: '#000000',
  },
}
SCSS
$custom: #b542db;
$custom-light: #cf80e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b542db",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 285.098,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60294,
    "c": 0.23253,
    "h": 316.4
  },
  "luminance": 0.18835
}

Semantic roles & 50–950 ramp

primary
#B542DB
secondary
#ACDC9D
accent
#EB3D68
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B542DB

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

Preview Lab → · Contrast checker → · Palette generator →

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