#542978#542978

#542978 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.131 H 306.1°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#542978
RGBrgb(84, 41, 120)
HSLhsl(273, 49%, 32%)
HSVhsv(273, 66%, 47%)
CMYKcmyk(30%, 65.8%, 0%, 52.9%)
CIE-LABlab(26.24, 35.59, -37.52)
CIE-LCHlch(26.24, 51.71, 313.49°)
OKLaboklab(37.95% 0.0775 -0.1062)
OKLCHoklch(37.95% 0.131 306.1)
XYZxyz(7.8385, 4.8268, 18.2844)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542978 #4D7829
analogous
#2D2978 #542978 #782975
triadic
#542978 #785429 #297854
tetradic
#542978 #782D29 #4D7829 #297578
square
#542978 #782D29 #4D7829 #297578
split-complementary
#542978 #757829 #29782D
monochromatic
#140A1D #34194A #542978 #7439A6 #9356C5

Accessibility & contrast

On white

10.68
#542978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#542978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542978
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542978#FFFFFF#000000##FFFFFF
##5429781.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#173E76
Tritanopia (blue-blind)
#4E394C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #542978;
/* rgb */ color: rgb(84, 41, 120);
/* oklch */ color: oklch(38.0% 0.131 306.1);
Tailwind
colors: {
  custom: {
    50: '#87659f',
    500: '#542978',
    950: '#000000',
  },
}
SCSS
$custom: #542978;
$custom-light: #87659f;
$custom-dark: #000000;
JSON
{
  "hex": "#542978",
  "rgb": {
    "r": 84,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 272.658,
    "s": 49.068,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3795,
    "c": 0.13146,
    "h": 306.1
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#542978
secondary
#7BAA53
accent
#D94F8E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #542978

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

Preview Lab → · Contrast checker → · Palette generator →

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