#542CAE#542CAE

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

Color values

HEX#542CAE
RGBrgb(84, 44, 174)
HSLhsl(258, 60%, 43%)
HSVhsv(258, 75%, 68%)
CMYKcmyk(51.7%, 74.7%, 0%, 31.8%)
CIE-LABlab(31.21, 48.68, -62.67)
CIE-LCHlch(31.21, 79.35, 307.84°)
OKLaboklab(42.87% 0.0651 -0.18)
OKLCHoklch(42.87% 0.191 289.9)
XYZxyz(12.1946, 6.7416, 40.6949)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CAE #86AE2C
analogous
#2C45AE #542CAE #952CAE
triadic
#542CAE #AE542C #2CAE54
tetradic
#542CAE #AE2C45 #86AE2C #2CAE95
square
#542CAE #AE2C45 #86AE2C #2CAE95
split-complementary
#542CAE #AE952C #45AE2C
monochromatic
#25134C #3C207D #542CAE #7147D0 #9778DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##542CAE#FFFFFF#000000##FFFFFF
##542CAE1.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)
#004CB2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#334F6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542cae;
/* rgb */ color: rgb(84, 44, 174);
/* oklch */ color: oklch(42.9% 0.191 289.9);
Tailwind
colors: {
  custom: {
    50: '#8d69c7',
    500: '#542cae',
    950: '#000000',
  },
}
SCSS
$custom: #542cae;
$custom-light: #8d69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#542cae",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 174
  },
  "hsl": {
    "h": 258.462,
    "s": 59.633,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42874,
    "c": 0.19145,
    "h": 289.9
  },
  "luminance": 0.06742
}

Semantic roles & 50–950 ramp

primary
#542CAE
secondary
#ABC571
accent
#E345B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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