#542E8E#542E8E

#542E8E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.151 H 297.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#542E8E
RGBrgb(84, 46, 142)
HSLhsl(264, 51%, 37%)
HSVhsv(264, 68%, 56%)
CMYKcmyk(40.8%, 67.6%, 0%, 44.3%)
CIE-LABlab(28.88, 38.71, -47.02)
CIE-LCHlch(28.88, 60.90, 309.46°)
OKLaboklab(40.38% 0.0694 -0.1341)
OKLCHoklch(40.38% 0.151 297.3)
XYZxyz(9.5144, 5.7916, 26.2026)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E8E #688E2E
analogous
#2E388E #542E8E #842E8E
triadic
#542E8E #8E542E #2E8E54
tetradic
#542E8E #8E2E38 #688E2E #2E8E84
square
#542E8E #8E2E38 #688E2E #2E8E84
split-complementary
#542E8E #8E842E #388E2E
monochromatic
#1D1032 #391F60 #542E8E #6F3DBC #9168CE

Accessibility & contrast

On white

9.73
#542E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#542E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E8E
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E8E#FFFFFF#000000##FFFFFF
##542E8E1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#46445A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542e8e;
/* rgb */ color: rgb(84, 46, 142);
/* oklch */ color: oklch(40.4% 0.151 297.3);
Tailwind
colors: {
  custom: {
    50: '#8969b0',
    500: '#542e8e',
    950: '#000000',
  },
}
SCSS
$custom: #542e8e;
$custom-light: #8969b0;
$custom-dark: #000000;
JSON
{
  "hex": "#542e8e",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 263.75,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40377,
    "c": 0.15098,
    "h": 297.3
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#542E8E
secondary
#94B563
accent
#DB4DA3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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