#B542C8#B542C8

#B542C8 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.216 H 321.7°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B542C8
RGBrgb(181, 66, 200)
HSLhsl(291, 55%, 52%)
HSVhsv(291, 67%, 78%)
CMYKcmyk(9.5%, 67%, 0%, 21.6%)
CIE-LABlab(49.36, 64.01, -47.95)
CIE-LCHlch(49.36, 79.98, 323.16°)
OKLaboklab(59.12% 0.1693 -0.1338)
OKLCHoklch(59.12% 0.216 321.7)
XYZxyz(31.4285, 17.8920, 56.4304)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542C8 #55C842
analogous
#7242C8 #B542C8 #C84298
triadic
#B542C8 #C8B542 #42C8B5
tetradic
#B542C8 #C87242 #55C842 #4298C8
square
#B542C8 #C87242 #55C842 #4298C8
split-complementary
#B542C8 #98C842 #42C872
monochromatic
#64206F #8F2E9F #B542C8 #C871D6 #DAA1E4

Accessibility & contrast

On white

4.59
#B542C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#B542C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B542C8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542C8#FFFFFF#000000##FFFFFF
##B542C81.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186DCC
Deuteranopia (green-blind)
#527AC5
Tritanopia (blue-blind)
#B75980
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b542c8;
/* rgb */ color: rgb(181, 66, 200);
/* oklch */ color: oklch(59.1% 0.216 321.7);
Tailwind
colors: {
  custom: {
    50: '#cf7fd9',
    500: '#b542c8',
    950: '#000000',
  },
}
SCSS
$custom: #b542c8;
$custom-light: #cf7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#b542c8",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 291.493,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59123,
    "c": 0.21583,
    "h": 321.7
  },
  "luminance": 0.1789
}

Semantic roles & 50–950 ramp

primary
#B542C8
secondary
#9ED096
accent
#DE4A5F
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B15
muted
#837C83

Preview Lab

Preview with #B542C8

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

Preview Lab → · Contrast checker → · Palette generator →

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