#542EAC#542EAC

#542EAC is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.187 H 290.0°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#542EAC
RGBrgb(84, 46, 172)
HSLhsl(258, 58%, 43%)
HSVhsv(258, 73%, 67%)
CMYKcmyk(51.2%, 73.3%, 0%, 32.5%)
CIE-LABlab(31.39, 47.12, -61.18)
CIE-LCHlch(31.39, 77.22, 307.60°)
OKLaboklab(42.94% 0.0639 -0.1757)
OKLCHoklch(42.94% 0.187 290)
XYZxyz(12.0774, 6.8168, 39.7011)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EAC #86AC2E
analogous
#2E47AC #542EAC #932EAC
triadic
#542EAC #AC542E #2EAC54
tetradic
#542EAC #AC2E47 #86AC2E #2EAC93
square
#542EAC #AC2E47 #86AC2E #2EAC93
split-complementary
#542EAC #AC932E #47AC2E
monochromatic
#25144B #3C217C #542EAC #7149CE #9779DB

Accessibility & contrast

On white

8.89
#542EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#542EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EAC
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EAC#FFFFFF#000000##FFFFFF
##542EAC1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#35506A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542eac;
/* rgb */ color: rgb(84, 46, 172);
/* oklch */ color: oklch(42.9% 0.187 290.0);
Tailwind
colors: {
  custom: {
    50: '#8d6ac6',
    500: '#542eac',
    950: '#000000',
  },
}
SCSS
$custom: #542eac;
$custom-light: #8d6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#542eac",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 258.095,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42942,
    "c": 0.18696,
    "h": 290
  },
  "luminance": 0.06817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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