#542076#542076

#542076 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.142 H 308.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#542076
RGBrgb(84, 32, 118)
HSLhsl(276, 57%, 29%)
HSVhsv(276, 73%, 46%)
CMYKcmyk(28.8%, 72.9%, 0%, 53.7%)
CIE-LABlab(24.40, 39.75, -39.20)
CIE-LCHlch(24.40, 55.82, 315.40°)
OKLaboklab(36.59% 0.0887 -0.111)
OKLCHoklch(36.59% 0.142 308.6)
XYZxyz(7.4420, 4.2260, 17.5597)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542076 #427620
analogous
#292076 #542076 #76206D
triadic
#542076 #765420 #207654
tetradic
#542076 #762920 #427620 #206D76
square
#542076 #762920 #427620 #206D76
split-complementary
#542076 #6D7620 #207629
monochromatic
#110718 #321346 #542076 #762DA6 #9644CC

Accessibility & contrast

On white

11.38
#542076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#542076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542076
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542076#FFFFFF#000000##FFFFFF
##5420761.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#0C3B74
Tritanopia (blue-blind)
#4F3348
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #542076;
/* rgb */ color: rgb(84, 32, 118);
/* oklch */ color: oklch(36.6% 0.142 308.6);
Tailwind
colors: {
  custom: {
    50: '#88609e',
    500: '#542076',
    950: '#000000',
  },
}
SCSS
$custom: #542076;
$custom-light: #88609e;
$custom-dark: #000000;
JSON
{
  "hex": "#542076",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 118
  },
  "hsl": {
    "h": 276.279,
    "s": 57.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36588,
    "c": 0.14212,
    "h": 308.6
  },
  "luminance": 0.04226
}

Semantic roles & 50–950 ramp

primary
#542076
secondary
#6FA948
accent
#E14784
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #542076

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

Preview Lab → · Contrast checker → · Palette generator →

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