#B542A2#B542A2

#B542A2 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.1% C 0.185 H 334.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#B542A2
RGBrgb(181, 66, 162)
HSLhsl(310, 47%, 48%)
HSVhsv(310, 64%, 71%)
CMYKcmyk(0%, 63.5%, 10.5%, 29%)
CIE-LABlab(47.41, 57.50, -28.82)
CIE-LCHlch(47.41, 64.32, 333.38°)
OKLaboklab(57.07% 0.1671 -0.0785)
OKLCHoklch(57.07% 0.185 334.8)
XYZxyz(27.5261, 16.3310, 35.8779)
Luminance0.1633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542A2 #42B555
analogous
#8E42B5 #B542A2 #B54268
triadic
#B542A2 #A2B542 #42A2B5
tetradic
#B542A2 #B58E42 #42B555 #4268B5
square
#B542A2 #B58E42 #42B555 #4268B5
split-complementary
#B542A2 #68B542 #42B58E
monochromatic
#5B2152 #88327A #B542A2 #C96BBA #D998CF

Accessibility & contrast

On white

4.92
#B542A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#B542A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B542A2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542A2#FFFFFF#000000##FFFFFF
##B542A21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#67779F
Tritanopia (blue-blind)
#BD4A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b542a2;
/* rgb */ color: rgb(181, 66, 162);
/* oklch */ color: oklch(57.1% 0.185 334.8);
Tailwind
colors: {
  custom: {
    50: '#ce7ebe',
    500: '#b542a2',
    950: '#000000',
  },
}
SCSS
$custom: #b542a2;
$custom-light: #ce7ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#b542a2",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 309.913,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57069,
    "c": 0.1846,
    "h": 334.8
  },
  "luminance": 0.16329
}

Semantic roles & 50–950 ramp

primary
#B542A2
secondary
#8EC597
accent
#D66852
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B542A2

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

Preview Lab → · Contrast checker → · Palette generator →

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