#542479#542479

#542479 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.140 H 306.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#542479
RGBrgb(84, 36, 121)
HSLhsl(274, 54%, 31%)
HSVhsv(274, 70%, 47%)
CMYKcmyk(30.6%, 70.2%, 0%, 52.5%)
CIE-LABlab(25.34, 38.50, -39.60)
CIE-LCHlch(25.34, 55.23, 314.19°)
OKLaboklab(37.33% 0.0836 -0.1122)
OKLCHoklch(37.33% 0.14 306.7)
XYZxyz(7.7375, 4.5271, 18.5517)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542479 #497924
analogous
#292479 #542479 #792473
triadic
#542479 #795424 #247954
tetradic
#542479 #792924 #497924 #247379
square
#542479 #792924 #497924 #247379
split-complementary
#542479 #737924 #247929
monochromatic
#13081B #33164A #542479 #7532A8 #944DCA

Accessibility & contrast

On white

11.02
#542479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#542479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542479
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542479#FFFFFF#000000##FFFFFF
##5424791.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#0D3C77
Tritanopia (blue-blind)
#4E374B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #542479;
/* rgb */ color: rgb(84, 36, 121);
/* oklch */ color: oklch(37.3% 0.140 306.7);
Tailwind
colors: {
  custom: {
    50: '#8863a0',
    500: '#542479',
    950: '#000000',
  },
}
SCSS
$custom: #542479;
$custom-light: #8863a0;
$custom-dark: #000000;
JSON
{
  "hex": "#542479",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 273.882,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3733,
    "c": 0.13998,
    "h": 306.7
  },
  "luminance": 0.04527
}

Semantic roles & 50–950 ramp

primary
#542479
secondary
#76AC4D
accent
#DE4A8A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050F
muted
#7D7A7E

Preview Lab

Preview with #542479

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

Preview Lab → · Contrast checker → · Palette generator →

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