#B542CD#B542CD

#B542CD is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.220 H 320.2°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B542CD
RGBrgb(181, 66, 205)
HSLhsl(290, 58%, 53%)
HSVhsv(290, 68%, 80%)
CMYKcmyk(11.7%, 67.8%, 0%, 19.6%)
CIE-LABlab(49.65, 64.93, -50.37)
CIE-LCHlch(49.65, 82.18, 322.20°)
OKLaboklab(59.42% 0.1692 -0.1409)
OKLCHoklch(59.42% 0.22 320.2)
XYZxyz(32.0224, 18.1295, 59.5584)
Luminance0.1813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B542CD #5ACD42
analogous
#6F42CD #B542CD #CD42A0
triadic
#B542CD #CDB542 #42CDB5
tetradic
#B542CD #CD6F42 #5ACD42 #42A0CD
square
#B542CD #CD6F42 #5ACD42 #42A0CD
split-complementary
#B542CD #A0CD42 #42CD6F
monochromatic
#671F76 #912CA6 #B542CD #C872DA #DBA3E7

Accessibility & contrast

On white

4.54
#B542CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#B542CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B542CD
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B542CD#FFFFFF#000000##000000
##B542CD1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#096ED1
Deuteranopia (green-blind)
#4F7ACA
Tritanopia (blue-blind)
#B65B83
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b542cd;
/* rgb */ color: rgb(181, 66, 205);
/* oklch */ color: oklch(59.4% 0.220 320.2);
Tailwind
colors: {
  custom: {
    50: '#cf7fdd',
    500: '#b542cd',
    950: '#000000',
  },
}
SCSS
$custom: #b542cd;
$custom-light: #cf7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#b542cd",
  "rgb": {
    "r": 181,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 289.64,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59422,
    "c": 0.22019,
    "h": 320.2
  },
  "luminance": 0.18128
}

Semantic roles & 50–950 ramp

primary
#B542CD
secondary
#A2D397
accent
#E14661
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #B542CD

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

Preview Lab → · Contrast checker → · Palette generator →

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