#B542CC#B542CC

#B542CC is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.219 H 320.5°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#B542CC
RGBrgb(181, 66, 204)
HSLhsl(290, 58%, 53%)
HSVhsv(290, 68%, 80%)
CMYKcmyk(11.3%, 67.6%, 0%, 20%)
CIE-LABlab(49.59, 64.74, -49.89)
CIE-LCHlch(49.59, 81.74, 322.38°)
OKLaboklab(59.36% 0.1693 -0.1395)
OKLCHoklch(59.36% 0.219 320.5)
XYZxyz(31.9021, 18.0814, 58.9247)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542CC #59CC42
analogous
#7042CC #B542CC #CC429E
triadic
#B542CC #CCB542 #42CCB5
tetradic
#B542CC #CC7042 #59CC42 #429ECC
square
#B542CC #CC7042 #59CC42 #429ECC
split-complementary
#B542CC #9ECC42 #42CC70
monochromatic
#661F74 #902CA4 #B542CC #C872D9 #DBA2E6

Accessibility & contrast

On white

4.55
#B542CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#B542CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542CC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542CC#FFFFFF#000000##000000
##B542CC1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D6ED0
Deuteranopia (green-blind)
#4F7AC9
Tritanopia (blue-blind)
#B65B82
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b542cc;
/* rgb */ color: rgb(181, 66, 204);
/* oklch */ color: oklch(59.4% 0.219 320.5);
Tailwind
colors: {
  custom: {
    50: '#cf7fdc',
    500: '#b542cc',
    950: '#000000',
  },
}
SCSS
$custom: #b542cc;
$custom-light: #cf7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#b542cc",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 290,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59362,
    "c": 0.21931,
    "h": 320.5
  },
  "luminance": 0.1808
}

Semantic roles & 50–950 ramp

primary
#B542CC
secondary
#A1D397
accent
#E14761
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B542CC

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

Preview Lab → · Contrast checker → · Palette generator →

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