#542EAD#542EAD

#542EAD is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.188 H 289.8°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#542EAD
RGBrgb(84, 46, 173)
HSLhsl(258, 58%, 43%)
HSVhsv(258, 73%, 68%)
CMYKcmyk(51.4%, 73.4%, 0%, 32.2%)
CIE-LABlab(31.48, 47.40, -61.63)
CIE-LCHlch(31.48, 77.75, 307.56°)
OKLaboklab(43.03% 0.0637 -0.177)
OKLCHoklch(43.03% 0.188 289.8)
XYZxyz(12.1738, 6.8554, 40.2088)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EAD #87AD2E
analogous
#2E47AD #542EAD #932EAD
triadic
#542EAD #AD542E #2EAD54
tetradic
#542EAD #AD2E47 #87AD2E #2EAD93
square
#542EAD #AD2E47 #87AD2E #2EAD93
split-complementary
#542EAD #AD932E #47AD2E
monochromatic
#25144C #3D217D #542EAD #7149CF #977ADC

Accessibility & contrast

On white

8.86
#542EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#542EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EAD
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EAD#FFFFFF#000000##FFFFFF
##542EAD1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB1
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#34506B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542ead;
/* rgb */ color: rgb(84, 46, 173);
/* oklch */ color: oklch(43.0% 0.188 289.8);
Tailwind
colors: {
  custom: {
    50: '#8d6ac6',
    500: '#542ead',
    950: '#000000',
  },
}
SCSS
$custom: #542ead;
$custom-light: #8d6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#542ead",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 173
  },
  "hsl": {
    "h": 257.953,
    "s": 57.991,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43033,
    "c": 0.18813,
    "h": 289.8
  },
  "luminance": 0.06856
}

Semantic roles & 50–950 ramp

primary
#542EAD
secondary
#ACC473
accent
#E147B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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