#542379#542379

#542379 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.141 H 306.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#542379
RGBrgb(84, 35, 121)
HSLhsl(274, 55%, 31%)
HSVhsv(274, 71%, 47%)
CMYKcmyk(30.6%, 71.1%, 0%, 52.5%)
CIE-LABlab(25.16, 39.01, -39.89)
CIE-LCHlch(25.16, 55.79, 314.36°)
OKLaboklab(37.2% 0.0848 -0.1131)
OKLCHoklch(37.2% 0.141 306.9)
XYZxyz(7.7076, 4.4674, 18.5417)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542379 #487923
analogous
#292379 #542379 #792373
triadic
#542379 #795423 #237954
tetradic
#542379 #792923 #487923 #237379
square
#542379 #792923 #487923 #237379
split-complementary
#542379 #737923 #237929
monochromatic
#12081A #33154A #542379 #7531A8 #944BCB

Accessibility & contrast

On white

11.09
#542379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#542379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542379
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542379#FFFFFF#000000##FFFFFF
##5423791.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542379;
/* rgb */ color: rgb(84, 35, 121);
/* oklch */ color: oklch(37.2% 0.141 306.9);
Tailwind
colors: {
  custom: {
    50: '#8862a0',
    500: '#542379',
    950: '#000000',
  },
}
SCSS
$custom: #542379;
$custom-light: #8862a0;
$custom-dark: #000000;
JSON
{
  "hex": "#542379",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 121
  },
  "hsl": {
    "h": 274.186,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.372,
    "c": 0.14137,
    "h": 306.9
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#542379
secondary
#75AC4C
accent
#DE4989
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050F
muted
#7D7A7E

Preview Lab

Preview with #542379

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

Preview Lab → · Contrast checker → · Palette generator →

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