#542E8D#542E8D

#542E8D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.150 H 297.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#542E8D
RGBrgb(84, 46, 141)
HSLhsl(264, 51%, 37%)
HSVhsv(264, 67%, 55%)
CMYKcmyk(40.4%, 67.4%, 0%, 44.7%)
CIE-LABlab(28.80, 38.43, -46.53)
CIE-LCHlch(28.80, 60.35, 309.56°)
OKLaboklab(40.3% 0.0695 -0.1327)
OKLCHoklch(40.3% 0.15 297.6)
XYZxyz(9.4396, 5.7617, 25.8089)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E8D #678D2E
analogous
#2E388D #542E8D #842E8D
triadic
#542E8D #8D542E #2E8D54
tetradic
#542E8D #8D2E38 #678D2E #2E8D84
square
#542E8D #8D2E38 #678D2E #2E8D84
split-complementary
#542E8D #8D842E #388D2E
monochromatic
#1D1031 #391F5F #542E8D #6F3DBB #9168CE

Accessibility & contrast

On white

9.76
#542E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#542E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E8D
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E8D#FFFFFF#000000##FFFFFF
##542E8D1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#464459
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542e8d;
/* rgb */ color: rgb(84, 46, 141);
/* oklch */ color: oklch(40.3% 0.150 297.6);
Tailwind
colors: {
  custom: {
    50: '#8969af',
    500: '#542e8d',
    950: '#000000',
  },
}
SCSS
$custom: #542e8d;
$custom-light: #8969af;
$custom-dark: #000000;
JSON
{
  "hex": "#542e8d",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 264,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40297,
    "c": 0.14975,
    "h": 297.6
  },
  "luminance": 0.05762
}

Semantic roles & 50–950 ramp

primary
#542E8D
secondary
#94B562
accent
#DA4EA2
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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