#542494#542494

#542494 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.171 H 297.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#542494
RGBrgb(84, 36, 148)
HSLhsl(266, 61%, 36%)
HSVhsv(266, 76%, 58%)
CMYKcmyk(43.2%, 75.7%, 0%, 42%)
CIE-LABlab(27.53, 45.47, -52.92)
CIE-LCHlch(27.53, 69.77, 310.67°)
OKLaboklab(39.57% 0.0786 -0.1514)
OKLCHoklch(39.57% 0.171 297.4)
XYZxyz(9.6309, 5.2845, 28.5238)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542494 #649424
analogous
#242C94 #542494 #8C2494
triadic
#542494 #945424 #249454
tetradic
#542494 #94242C #649424 #24948C
square
#542494 #94242C #649424 #24948C
split-complementary
#542494 #948C24 #2C9424
monochromatic
#1C0C32 #381863 #542494 #7030C5 #905BD7

Accessibility & contrast

On white

10.21
#542494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#542494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542494
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542494#FFFFFF#000000##FFFFFF
##5424941.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#44415A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542494;
/* rgb */ color: rgb(84, 36, 148);
/* oklch */ color: oklch(39.6% 0.171 297.4);
Tailwind
colors: {
  custom: {
    50: '#8a64b4',
    500: '#542494',
    950: '#000000',
  },
}
SCSS
$custom: #542494;
$custom-light: #8a64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542494",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 148
  },
  "hsl": {
    "h": 265.714,
    "s": 60.87,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39569,
    "c": 0.17058,
    "h": 297.4
  },
  "luminance": 0.05285
}

Semantic roles & 50–950 ramp

primary
#542494
secondary
#91BC58
accent
#E4449F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542494

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

Preview Lab → · Contrast checker → · Palette generator →

#542494 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva