#542182#542182

#542182 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.154 H 303.7°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#542182
RGBrgb(84, 33, 130)
HSLhsl(272, 60%, 32%)
HSVhsv(272, 75%, 51%)
CMYKcmyk(35.4%, 74.6%, 0%, 49%)
CIE-LABlab(25.52, 42.24, -45.00)
CIE-LCHlch(25.52, 61.72, 313.19°)
OKLaboklab(37.67% 0.0856 -0.1281)
OKLCHoklch(37.67% 0.154 303.7)
XYZxyz(8.2283, 4.5843, 21.5661)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542182 #4F8221
analogous
#232182 #542182 #822180
triadic
#542182 #825421 #218254
tetradic
#542182 #822321 #4F8221 #218082
square
#542182 #822321 #4F8221 #218082
split-complementary
#542182 #808221 #218223
monochromatic
#150820 #341551 #542182 #742DB3 #924CD2

Accessibility & contrast

On white

10.96
#542182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#542182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542182
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542182#FFFFFF#000000##FFFFFF
##5421821.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.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: #542182;
/* rgb */ color: rgb(84, 33, 130);
/* oklch */ color: oklch(37.7% 0.154 303.7);
Tailwind
colors: {
  custom: {
    50: '#8961a7',
    500: '#542182',
    950: '#000000',
  },
}
SCSS
$custom: #542182;
$custom-light: #8961a7;
$custom-dark: #000000;
JSON
{
  "hex": "#542182",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 271.546,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37675,
    "c": 0.15405,
    "h": 303.7
  },
  "luminance": 0.04584
}

Semantic roles & 50–950 ramp

primary
#542182
secondary
#7DB44A
accent
#E34590
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #542182

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

Preview Lab → · Contrast checker → · Palette generator →

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