#542E9D#542E9D

#542E9D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.169 H 293.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#542E9D
RGBrgb(84, 46, 157)
HSLhsl(261, 55%, 40%)
HSVhsv(261, 71%, 62%)
CMYKcmyk(46.5%, 70.7%, 0%, 38.4%)
CIE-LABlab(30.09, 42.89, -54.25)
CIE-LCHlch(30.09, 69.15, 308.33°)
OKLaboklab(41.62% 0.067 -0.1553)
OKLCHoklch(41.62% 0.169 293.3)
XYZxyz(10.7173, 6.2728, 32.5378)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E9D #779D2E
analogous
#2E3F9D #542E9D #8C2E9D
triadic
#542E9D #9D542E #2E9D54
tetradic
#542E9D #9D2E3F #779D2E #2E9D8C
square
#542E9D #9D2E3F #779D2E #2E9D8C
split-complementary
#542E9D #9D8C2E #3F9D2E
monochromatic
#21123E #3B206E #542E9D #6F41C7 #9370D5

Accessibility & contrast

On white

9.31
#542E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#542E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E9D
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E9D#FFFFFF#000000##FFFFFF
##542E9D1.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#3E4A62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542e9d;
/* rgb */ color: rgb(84, 46, 157);
/* oklch */ color: oklch(41.6% 0.169 293.3);
Tailwind
colors: {
  custom: {
    50: '#8b6abb',
    500: '#542e9d',
    950: '#000000',
  },
}
SCSS
$custom: #542e9d;
$custom-light: #8b6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#542e9d",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 260.541,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41622,
    "c": 0.16919,
    "h": 293.3
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#542E9D
secondary
#A0BD6A
accent
#DE4AAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #542E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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