#542EAA#542EAA

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

Color values

HEX#542EAA
RGBrgb(84, 46, 170)
HSLhsl(258, 57%, 42%)
HSVhsv(258, 73%, 67%)
CMYKcmyk(50.6%, 72.9%, 0%, 33.3%)
CIE-LABlab(31.21, 46.55, -60.27)
CIE-LCHlch(31.21, 76.16, 307.68°)
OKLaboklab(42.76% 0.0643 -0.173)
OKLCHoklch(42.76% 0.185 290.4)
XYZxyz(11.8868, 6.7406, 38.6972)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EAA #84AA2E
analogous
#2E46AA #542EAA #922EAA
triadic
#542EAA #AA542E #2EAA54
tetradic
#542EAA #AA2E46 #84AA2E #2EAA92
square
#542EAA #AA2E46 #84AA2E #2EAA92
split-complementary
#542EAA #AA922E #46AA2E
monochromatic
#24144A #3C217A #542EAA #7148CD #9678DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##542EAA#FFFFFF#000000##FFFFFF
##542EAA1.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)
#004CAE
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#364F69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542eaa;
/* rgb */ color: rgb(84, 46, 170);
/* oklch */ color: oklch(42.8% 0.185 290.4);
Tailwind
colors: {
  custom: {
    50: '#8d6ac4',
    500: '#542eaa',
    950: '#000000',
  },
}
SCSS
$custom: #542eaa;
$custom-light: #8d6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#542eaa",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 258.387,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42762,
    "c": 0.18461,
    "h": 290.4
  },
  "luminance": 0.06741
}

Semantic roles & 50–950 ramp

primary
#542EAA
secondary
#AAC371
accent
#E147B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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