#542484#542484

#542484 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.153 H 302.5°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#542484
RGBrgb(84, 36, 132)
HSLhsl(270, 57%, 33%)
HSVhsv(270, 73%, 52%)
CMYKcmyk(36.4%, 72.7%, 0%, 48.2%)
CIE-LABlab(26.19, 41.29, -45.16)
CIE-LCHlch(26.19, 61.19, 312.44°)
OKLaboklab(38.21% 0.082 -0.1286)
OKLCHoklch(38.21% 0.153 302.5)
XYZxyz(8.4509, 4.8125, 22.3090)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542484 #548424
analogous
#242484 #542484 #842484
triadic
#542484 #845424 #248454
tetradic
#542484 #842424 #548424 #248484
square
#542484 #842424 #548424 #248484
split-complementary
#542484 #848424 #248424
monochromatic
#170A24 #351754 #542484 #7331B4 #9152D0

Accessibility & contrast

On white

10.70
#542484 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#542484 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542484
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542484#FFFFFF#000000##FFFFFF
##5424841.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#4A3B51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #542484;
/* rgb */ color: rgb(84, 36, 132);
/* oklch */ color: oklch(38.2% 0.153 302.5);
Tailwind
colors: {
  custom: {
    50: '#8963a8',
    500: '#542484',
    950: '#000000',
  },
}
SCSS
$custom: #542484;
$custom-light: #8963a8;
$custom-dark: #000000;
JSON
{
  "hex": "#542484",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 132
  },
  "hsl": {
    "h": 270,
    "s": 57.143,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38206,
    "c": 0.15252,
    "h": 302.5
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#542484
secondary
#82B450
accent
#E04794
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #542484

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

Preview Lab → · Contrast checker → · Palette generator →

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