#542E56#542E56

#542E56 is a dark, moderate purple. Relative luminance 0.045; OKLCH L 36.6% C 0.082 H 325.3°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#542E56
RGBrgb(84, 46, 86)
HSLhsl(297, 30%, 26%)
HSVhsv(297, 47%, 34%)
CMYKcmyk(2.3%, 46.5%, 0%, 66.3%)
CIE-LABlab(25.29, 24.50, -17.01)
CIE-LCHlch(25.29, 29.82, 325.22°)
OKLaboklab(36.6% 0.0672 -0.0466)
OKLCHoklch(36.6% 0.082 325.3)
XYZxyz(6.3127, 4.5110, 9.3405)
Luminance0.0451 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E56 #30562E
analogous
#402E56 #542E56 #562E44
triadic
#542E56 #56542E #2E5654
tetradic
#542E56 #56402E #30562E #2E4456
square
#542E56 #56402E #30562E #2E4456
split-complementary
#542E56 #44562E #2E5640
monochromatic
#130B14 #2D192E #542E56 #7B437E #A259A6

Accessibility & contrast

On white

11.04
#542E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#542E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E56
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E56#FFFFFF#000000##FFFFFF
##542E561.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3957
Deuteranopia (green-blind)
#343E55
Tritanopia (blue-blind)
#56323E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #542e56;
/* rgb */ color: rgb(84, 46, 86);
/* oklch */ color: oklch(36.6% 0.082 325.3);
Tailwind
colors: {
  custom: {
    50: '#856885',
    500: '#542e56',
    950: '#000000',
  },
}
SCSS
$custom: #542e56;
$custom-light: #856885;
$custom-dark: #000000;
JSON
{
  "hex": "#542e56",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 86
  },
  "hsl": {
    "h": 297,
    "s": 30.303,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36597,
    "c": 0.08179,
    "h": 325.3
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#542E56
secondary
#5B8858
accent
#C76166
background
#F8F6F8
surface
#EFEBEF
border
#CAC6CA
text
#0B060B
muted
#7C7A7C

Preview Lab

Preview with #542E56

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

Preview Lab → · Contrast checker → · Palette generator →

#542E56 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva