#542CAC#542CAC

#542CAC is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.189 H 290.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#542CAC
RGBrgb(84, 44, 172)
HSLhsl(259, 59%, 42%)
HSVhsv(259, 74%, 67%)
CMYKcmyk(51.2%, 74.4%, 0%, 32.5%)
CIE-LABlab(31.03, 48.13, -61.77)
CIE-LCHlch(31.03, 78.30, 307.92°)
OKLaboklab(42.69% 0.0656 -0.1774)
OKLCHoklch(42.69% 0.189 290.3)
XYZxyz(12.0011, 6.6642, 39.6757)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CAC #84AC2C
analogous
#2C44AC #542CAC #942CAC
triadic
#542CAC #AC542C #2CAC54
tetradic
#542CAC #AC2C44 #84AC2C #2CAC94
square
#542CAC #AC2C44 #84AC2C #2CAC94
split-complementary
#542CAC #AC942C #44AC2C
monochromatic
#24134B #3C207B #542CAC #7146D0 #9676DC

Accessibility & contrast

On white

9.00
#542CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542CAC
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CAC#FFFFFF#000000##FFFFFF
##542CAC1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542cac;
/* rgb */ color: rgb(84, 44, 172);
/* oklch */ color: oklch(42.7% 0.189 290.3);
Tailwind
colors: {
  custom: {
    50: '#8d69c6',
    500: '#542cac',
    950: '#000000',
  },
}
SCSS
$custom: #542cac;
$custom-light: #8d69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#542cac",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 258.75,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42691,
    "c": 0.18914,
    "h": 290.3
  },
  "luminance": 0.06665
}

Semantic roles & 50–950 ramp

primary
#542CAC
secondary
#AAC470
accent
#E245B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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