#B542CB#B542CB

#B542CB is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.3% C 0.218 H 320.8°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B542CB
RGBrgb(181, 66, 203)
HSLhsl(290, 57%, 53%)
HSVhsv(290, 67%, 80%)
CMYKcmyk(10.8%, 67.5%, 0%, 20.4%)
CIE-LABlab(49.54, 64.56, -49.41)
CIE-LCHlch(49.54, 81.29, 322.57°)
OKLaboklab(59.3% 0.1693 -0.1381)
OKLCHoklch(59.3% 0.218 320.8)
XYZxyz(31.7825, 18.0336, 58.2951)
Luminance0.1803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542CB #58CB42
analogous
#7042CB #B542CB #CB429C
triadic
#B542CB #CBB542 #42CBB5
tetradic
#B542CB #CB7042 #58CB42 #429CCB
square
#B542CB #CB7042 #58CB42 #429CCB
split-complementary
#B542CB #9CCB42 #42CB70
monochromatic
#662073 #902DA3 #B542CB #C872D8 #DBA2E5

Accessibility & contrast

On white

4.56
#B542CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#B542CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542CB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542CB#FFFFFF#000000##000000
##B542CB1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#106ECF
Deuteranopia (green-blind)
#507AC8
Tritanopia (blue-blind)
#B65A81
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b542cb;
/* rgb */ color: rgb(181, 66, 203);
/* oklch */ color: oklch(59.3% 0.218 320.8);
Tailwind
colors: {
  custom: {
    50: '#cf7fdb',
    500: '#b542cb',
    950: '#000000',
  },
}
SCSS
$custom: #b542cb;
$custom-light: #cf7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b542cb",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 290.365,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59302,
    "c": 0.21844,
    "h": 320.8
  },
  "luminance": 0.18032
}

Semantic roles & 50–950 ramp

primary
#B542CB
secondary
#A0D297
accent
#E04860
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B542CB

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

Preview Lab → · Contrast checker → · Palette generator →

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