#542E81#542E81

#542E81 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.135 H 301.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#542E81
RGBrgb(84, 46, 129)
HSLhsl(267, 47%, 34%)
HSVhsv(267, 64%, 51%)
CMYKcmyk(34.9%, 64.3%, 0%, 49.4%)
CIE-LABlab(27.91, 35.16, -40.50)
CIE-LCHlch(27.91, 53.63, 310.96°)
OKLaboklab(39.37% 0.0706 -0.1149)
OKLCHoklch(39.37% 0.135 301.5)
XYZxyz(8.5947, 5.4238, 21.3587)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E81 #5B812E
analogous
#2E3181 #542E81 #7E2E81
triadic
#542E81 #81542E #2E8154
tetradic
#542E81 #812E31 #5B812E #2E817E
square
#542E81 #812E31 #5B812E #2E817E
split-complementary
#542E81 #817E2E #31812E
monochromatic
#190E27 #371E54 #542E81 #713EAE #9062C7

Accessibility & contrast

On white

10.07
#542E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#542E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E81
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E81#FFFFFF#000000##FFFFFF
##542E811.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#12417F
Tritanopia (blue-blind)
#4B4053
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542e81;
/* rgb */ color: rgb(84, 46, 129);
/* oklch */ color: oklch(39.4% 0.135 301.5);
Tailwind
colors: {
  custom: {
    50: '#8869a6',
    500: '#542e81',
    950: '#000000',
  },
}
SCSS
$custom: #542e81;
$custom-light: #8869a6;
$custom-dark: #000000;
JSON
{
  "hex": "#542e81",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 267.47,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39367,
    "c": 0.13487,
    "h": 301.5
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#542E81
secondary
#89AE5D
accent
#D7519A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #542E81

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

Preview Lab → · Contrast checker → · Palette generator →

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