#B542C2#B542C2

#B542C2 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.211 H 323.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B542C2
RGBrgb(181, 66, 194)
HSLhsl(294, 51%, 51%)
HSVhsv(294, 66%, 76%)
CMYKcmyk(6.7%, 66%, 0%, 23.9%)
CIE-LABlab(49.03, 62.92, -45.02)
CIE-LCHlch(49.03, 77.37, 324.42°)
OKLaboklab(58.77% 0.1694 -0.1253)
OKLCHoklch(58.77% 0.211 323.5)
XYZxyz(30.7410, 17.6170, 52.8097)
Luminance0.1762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542C2 #4FC242
analogous
#7542C2 #B542C2 #C2428F
triadic
#B542C2 #C2B542 #42C2B5
tetradic
#B542C2 #C27542 #4FC242 #428FC2
square
#B542C2 #C27542 #4FC242 #428FC2
split-complementary
#B542C2 #8FC242 #42C275
monochromatic
#612268 #8C3196 #B542C2 #C770D1 #D99FE0

Accessibility & contrast

On white

4.64
#B542C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#B542C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B542C2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542C2#FFFFFF#000000##FFFFFF
##B542C21.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236CC6
Deuteranopia (green-blind)
#5679BF
Tritanopia (blue-blind)
#B8567D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #b542c2;
/* rgb */ color: rgb(181, 66, 194);
/* oklch */ color: oklch(58.8% 0.211 323.5);
Tailwind
colors: {
  custom: {
    50: '#cf7fd5',
    500: '#b542c2',
    950: '#000000',
  },
}
SCSS
$custom: #b542c2;
$custom-light: #cf7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#b542c2",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 293.906,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58772,
    "c": 0.21066,
    "h": 323.5
  },
  "luminance": 0.17615
}

Semantic roles & 50–950 ramp

primary
#B542C2
secondary
#99CC94
accent
#DB4D5C
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #B542C2

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

Preview Lab → · Contrast checker → · Palette generator →

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