#542082#542082

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

Color values

HEX#542082
RGBrgb(84, 32, 130)
HSLhsl(272, 60%, 32%)
HSVhsv(272, 75%, 51%)
CMYKcmyk(35.4%, 75.4%, 0%, 49%)
CIE-LABlab(25.35, 42.71, -45.27)
CIE-LCHlch(25.35, 62.24, 313.33°)
OKLaboklab(37.56% 0.0866 -0.1289)
OKLCHoklch(37.56% 0.155 303.9)
XYZxyz(8.2010, 4.5296, 21.5570)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542082 #4E8220
analogous
#232082 #542082 #82207F
triadic
#542082 #825420 #208254
tetradic
#542082 #822320 #4E8220 #207F82
square
#542082 #822320 #4E8220 #207F82
split-complementary
#542082 #7F8220 #208223
monochromatic
#150820 #341451 #542082 #742CB3 #924AD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##542082#FFFFFF#000000##FFFFFF
##5420821.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)
#003B85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#4B384F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #542082;
/* rgb */ color: rgb(84, 32, 130);
/* oklch */ color: oklch(37.6% 0.155 303.9);
Tailwind
colors: {
  custom: {
    50: '#8961a7',
    500: '#542082',
    950: '#000000',
  },
}
SCSS
$custom: #542082;
$custom-light: #8961a7;
$custom-dark: #000000;
JSON
{
  "hex": "#542082",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 271.837,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37557,
    "c": 0.15528,
    "h": 303.9
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#542082
secondary
#7CB549
accent
#E4448F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #542082

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

Preview Lab → · Contrast checker → · Palette generator →

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