#B542CF#B542CF

#B542CF is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.5% C 0.222 H 319.7°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#B542CF
RGBrgb(181, 66, 207)
HSLhsl(289, 59%, 54%)
HSVhsv(289, 68%, 81%)
CMYKcmyk(12.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(49.77, 65.30, -51.33)
CIE-LCHlch(49.77, 83.06, 321.83°)
OKLaboklab(59.54% 0.1691 -0.1437)
OKLCHoklch(59.54% 0.222 319.7)
XYZxyz(32.2653, 18.2267, 60.8379)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542CF #5CCF42
analogous
#6E42CF #B542CF #CF42A2
triadic
#B542CF #CFB542 #42CFB5
tetradic
#B542CF #CF6E42 #5CCF42 #42A2CF
square
#B542CF #CF6E42 #5CCF42 #42A2CF
split-complementary
#B542CF #A2CF42 #42CF6E
monochromatic
#681F78 #922BA9 #B542CF #C873DB #DBA4E8

Accessibility & contrast

On white

4.52
#B542CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#B542CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542CF
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542CF#FFFFFF#000000##000000
##B542CF1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD3
Deuteranopia (green-blind)
#4D7ACC
Tritanopia (blue-blind)
#B55C84
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b542cf;
/* rgb */ color: rgb(181, 66, 207);
/* oklch */ color: oklch(59.5% 0.222 319.7);
Tailwind
colors: {
  custom: {
    50: '#cf80de',
    500: '#b542cf',
    950: '#000000',
  },
}
SCSS
$custom: #b542cf;
$custom-light: #cf80de;
$custom-dark: #000000;
JSON
{
  "hex": "#b542cf",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 288.936,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59544,
    "c": 0.22194,
    "h": 319.7
  },
  "luminance": 0.18225
}

Semantic roles & 50–950 ramp

primary
#B542CF
secondary
#A3D598
accent
#E34562
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B542CF

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

Preview Lab → · Contrast checker → · Palette generator →

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