#542151#542151

#542151 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.2% C 0.101 H 329.8°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#542151
RGBrgb(84, 33, 81)
HSLhsl(304, 44%, 23%)
HSVhsv(304, 61%, 33%)
CMYKcmyk(0%, 60.7%, 3.6%, 67.1%)
CIE-LABlab(22.18, 30.95, -18.53)
CIE-LCHlch(22.18, 36.07, 329.10°)
OKLaboklab(34.21% 0.0874 -0.0508)
OKLCHoklch(34.21% 0.101 329.8)
XYZxyz(5.6852, 3.5670, 8.1720)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542151 #215424
analogous
#3D2154 #542151 #542137
triadic
#542151 #515421 #215154
tetradic
#542151 #543D21 #215424 #213754
square
#542151 #543D21 #215424 #213754
split-complementary
#542151 #375421 #21543D
monochromatic
#160915 #281027 #542151 #80327B #AC44A6

Accessibility & contrast

On white

12.26
#542151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#542151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542151
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542151#FFFFFF#000000##FFFFFF
##5421511.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3153
Deuteranopia (green-blind)
#2E3850
Tritanopia (blue-blind)
#572635
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #542151;
/* rgb */ color: rgb(84, 33, 81);
/* oklch */ color: oklch(34.2% 0.101 329.8);
Tailwind
colors: {
  custom: {
    50: '#865f82',
    500: '#542151',
    950: '#000000',
  },
}
SCSS
$custom: #542151;
$custom-light: #865f82;
$custom-dark: #000000;
JSON
{
  "hex": "#542151",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 303.529,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34211,
    "c": 0.10107,
    "h": 329.8
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#542151
secondary
#49884C
accent
#D35C54
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #542151

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

Preview Lab → · Contrast checker → · Palette generator →

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