#542E9A#542E9A

#542E9A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.166 H 294.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#542E9A
RGBrgb(84, 46, 154)
HSLhsl(261, 54%, 39%)
HSVhsv(261, 70%, 60%)
CMYKcmyk(45.5%, 70.1%, 0%, 39.6%)
CIE-LABlab(29.84, 42.05, -52.83)
CIE-LCHlch(29.84, 67.52, 308.52°)
OKLaboklab(41.37% 0.0676 -0.1512)
OKLCHoklch(41.37% 0.166 294.1)
XYZxyz(10.4643, 6.1716, 31.2055)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E9A #749A2E
analogous
#2E3E9A #542E9A #8A2E9A
triadic
#542E9A #9A542E #2E9A54
tetradic
#542E9A #9A2E3E #749A2E #2E9A8A
square
#542E9A #9A2E3E #749A2E #2E9A8A
split-complementary
#542E9A #9A8A2E #3E9A2E
monochromatic
#21123C #3A206B #542E9A #6F3FC6 #926FD4

Accessibility & contrast

On white

9.40
#542E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#542E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E9A
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E9A#FFFFFF#000000##FFFFFF
##542E9A1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#404960
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #542e9a;
/* rgb */ color: rgb(84, 46, 154);
/* oklch */ color: oklch(41.4% 0.166 294.1);
Tailwind
colors: {
  custom: {
    50: '#8a6ab9',
    500: '#542e9a',
    950: '#000000',
  },
}
SCSS
$custom: #542e9a;
$custom-light: #8a6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#542e9a",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 261.111,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41366,
    "c": 0.16558,
    "h": 294.1
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#542E9A
secondary
#9EBB69
accent
#DD4AAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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