#B542B2#B542B2

#B542B2 is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.9% C 0.197 H 328.8°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B542B2
RGBrgb(181, 66, 178)
HSLhsl(302, 47%, 48%)
HSVhsv(302, 64%, 71%)
CMYKcmyk(0%, 63.5%, 1.7%, 29%)
CIE-LABlab(48.18, 60.12, -37.04)
CIE-LCHlch(48.18, 70.62, 328.36°)
OKLaboklab(57.88% 0.1688 -0.1021)
OKLCHoklch(57.88% 0.197 328.8)
XYZxyz(29.0398, 16.9365, 43.8504)
Luminance0.1694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542B2 #42B545
analogous
#7E42B5 #B542B2 #B54278
triadic
#B542B2 #B2B542 #42B2B5
tetradic
#B542B2 #B57E42 #42B545 #4278B5
square
#B542B2 #B57E42 #42B545 #4278B5
split-complementary
#B542B2 #78B542 #42B57E
monochromatic
#5B215A #883286 #B542B2 #C96BC7 #D998D8

Accessibility & contrast

On white

4.79
#B542B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#B542B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B542B2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542B2#FFFFFF#000000##FFFFFF
##B542B21.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3669B5
Deuteranopia (green-blind)
#5F78AF
Tritanopia (blue-blind)
#BB5074
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b542b2;
/* rgb */ color: rgb(181, 66, 178);
/* oklch */ color: oklch(57.9% 0.197 328.8);
Tailwind
colors: {
  custom: {
    50: '#ce7fc9',
    500: '#b542b2',
    950: '#000000',
  },
}
SCSS
$custom: #b542b2;
$custom-light: #ce7fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#b542b2",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 301.565,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57884,
    "c": 0.19724,
    "h": 328.8
  },
  "luminance": 0.16935
}

Semantic roles & 50–950 ramp

primary
#B542B2
secondary
#8EC58F
accent
#D65552
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #B542B2

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

Preview Lab → · Contrast checker → · Palette generator →

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