#542DA9#542DA9

#542DA9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.185 H 290.8°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#542DA9
RGBrgb(84, 45, 169)
HSLhsl(259, 58%, 42%)
HSVhsv(259, 73%, 66%)
CMYKcmyk(50.3%, 73.4%, 0%, 33.7%)
CIE-LABlab(30.94, 46.78, -60.11)
CIE-LCHlch(30.94, 76.17, 307.89°)
OKLaboklab(42.54% 0.0654 -0.1726)
OKLCHoklch(42.54% 0.185 290.8)
XYZxyz(11.7539, 6.6257, 38.1880)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DA9 #82A92D
analogous
#2D44A9 #542DA9 #922DA9
triadic
#542DA9 #A9542D #2DA954
tetradic
#542DA9 #A92D44 #82A92D #2DA992
square
#542DA9 #A92D44 #82A92D #2DA992
split-complementary
#542DA9 #A9922D #44A92D
monochromatic
#241348 #3C2079 #542DA9 #7046CE #9676DA

Accessibility & contrast

On white

9.03
#542DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#542DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DA9
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DA9#FFFFFF#000000##FFFFFF
##542DA91.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#374E68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542da9;
/* rgb */ color: rgb(84, 45, 169);
/* oklch */ color: oklch(42.5% 0.185 290.8);
Tailwind
colors: {
  custom: {
    50: '#8d6ac4',
    500: '#542da9',
    950: '#000000',
  },
}
SCSS
$custom: #542da9;
$custom-light: #8d6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#542da9",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 258.871,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42544,
    "c": 0.18456,
    "h": 290.8
  },
  "luminance": 0.06626
}

Semantic roles & 50–950 ramp

primary
#542DA9
secondary
#A8C26F
accent
#E147B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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