#542197#542197

#542197 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.177 H 297.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#542197
RGBrgb(84, 33, 151)
HSLhsl(266, 64%, 36%)
HSVhsv(266, 78%, 59%)
CMYKcmyk(44.4%, 78.1%, 0%, 40.8%)
CIE-LABlab(27.32, 47.63, -55.11)
CIE-LCHlch(27.32, 72.84, 310.83°)
OKLaboklab(39.5% 0.0805 -0.1578)
OKLCHoklch(39.5% 0.177 297)
XYZxyz(9.7845, 5.2067, 29.7616)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542197 #649721
analogous
#212997 #542197 #8F2197
triadic
#542197 #975421 #219754
tetradic
#542197 #972129 #649721 #21978F
square
#542197 #972129 #649721 #21978F
split-complementary
#542197 #978F21 #299721
monochromatic
#1C0B33 #381665 #542197 #702CC9 #9058DA

Accessibility & contrast

On white

10.29
#542197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#542197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542197
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542197#FFFFFF#000000##FFFFFF
##5421971.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#42415B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542197;
/* rgb */ color: rgb(84, 33, 151);
/* oklch */ color: oklch(39.5% 0.177 297.0);
Tailwind
colors: {
  custom: {
    50: '#8b62b7',
    500: '#542197',
    950: '#000000',
  },
}
SCSS
$custom: #542197;
$custom-light: #8b62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542197",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 265.932,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.395,
    "c": 0.17714,
    "h": 297
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#542197
secondary
#91BE55
accent
#E7419F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #542197

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

Preview Lab → · Contrast checker → · Palette generator →

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