#542E5F#542E5F

#542E5F is a dark, moderate purple. Relative luminance 0.047; OKLCH L 37.1% C 0.092 H 318.3°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#542E5F
RGBrgb(84, 46, 95)
HSLhsl(287, 35%, 28%)
HSVhsv(287, 52%, 37%)
CMYKcmyk(11.6%, 51.6%, 0%, 62.7%)
CIE-LABlab(25.76, 26.53, -22.19)
CIE-LCHlch(25.76, 34.59, 320.10°)
OKLaboklab(37.1% 0.069 -0.0614)
OKLCHoklch(37.1% 0.092 318.3)
XYZxyz(6.6984, 4.6653, 11.3719)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E5F #395F2E
analogous
#3C2E5F #542E5F #5F2E51
triadic
#542E5F #5F542E #2E5F54
tetradic
#542E5F #5F3C2E #395F2E #2E515F
square
#542E5F #5F3C2E #395F2E #2E515F
split-complementary
#542E5F #515F2E #2E5F3C
monochromatic
#120A15 #301A36 #542E5F #784288 #9B59AF

Accessibility & contrast

On white

10.86
#542E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#542E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E5F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E5F#FFFFFF#000000##FFFFFF
##542E5F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253A61
Deuteranopia (green-blind)
#303E5E
Tritanopia (blue-blind)
#543542
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #542e5f;
/* rgb */ color: rgb(84, 46, 95);
/* oklch */ color: oklch(37.1% 0.092 318.3);
Tailwind
colors: {
  custom: {
    50: '#85688c',
    500: '#542e5f',
    950: '#000000',
  },
}
SCSS
$custom: #542e5f;
$custom-light: #85688c;
$custom-dark: #000000;
JSON
{
  "hex": "#542e5f",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 95
  },
  "hsl": {
    "h": 286.531,
    "s": 34.752,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37096,
    "c": 0.0924,
    "h": 318.3
  },
  "luminance": 0.04665
}

Semantic roles & 50–950 ramp

primary
#542E5F
secondary
#659158
accent
#CB5D76
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B060C
muted
#7C7A7D

Preview Lab

Preview with #542E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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