#542DAC#542DAC

#542DAC is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.188 H 290.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#542DAC
RGBrgb(84, 45, 172)
HSLhsl(258, 59%, 43%)
HSVhsv(258, 74%, 67%)
CMYKcmyk(51.2%, 73.8%, 0%, 32.5%)
CIE-LABlab(31.21, 47.63, -61.48)
CIE-LCHlch(31.21, 77.77, 307.77°)
OKLaboklab(42.82% 0.0648 -0.1766)
OKLCHoklch(42.82% 0.188 290.1)
XYZxyz(12.0388, 6.7396, 39.6883)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DAC #85AC2D
analogous
#2D46AC #542DAC #932DAC
triadic
#542DAC #AC542D #2DAC54
tetradic
#542DAC #AC2D46 #85AC2D #2DAC93
square
#542DAC #AC2D46 #85AC2D #2DAC93
split-complementary
#542DAC #AC932D #46AC2D
monochromatic
#25144B #3C207B #542DAC #7147CF #9678DC

Accessibility & contrast

On white

8.94
#542DAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#542DAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DAC
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DAC#FFFFFF#000000##FFFFFF
##542DAC1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#354F6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542dac;
/* rgb */ color: rgb(84, 45, 172);
/* oklch */ color: oklch(42.8% 0.188 290.1);
Tailwind
colors: {
  custom: {
    50: '#8d6ac6',
    500: '#542dac',
    950: '#000000',
  },
}
SCSS
$custom: #542dac;
$custom-light: #8d6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#542dac",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 258.425,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42815,
    "c": 0.18806,
    "h": 290.1
  },
  "luminance": 0.0674
}

Semantic roles & 50–950 ramp

primary
#542DAC
secondary
#AAC471
accent
#E246B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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