#542199#542199

#542199 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.179 H 296.5°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#542199
RGBrgb(84, 33, 153)
HSLhsl(266, 65%, 36%)
HSVhsv(266, 78%, 60%)
CMYKcmyk(45.1%, 78.4%, 0%, 40%)
CIE-LABlab(27.50, 48.15, -56.04)
CIE-LCHlch(27.50, 73.89, 310.67°)
OKLaboklab(39.68% 0.0799 -0.1605)
OKLCHoklch(39.68% 0.179 296.5)
XYZxyz(9.9483, 5.2722, 30.6243)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542199 #669921
analogous
#212A99 #542199 #902199
triadic
#542199 #995421 #219954
tetradic
#542199 #99212A #669921 #219990
square
#542199 #99212A #669921 #219990
split-complementary
#542199 #999021 #2A9921
monochromatic
#1D0B34 #381667 #542199 #702CCB #9059DB

Accessibility & contrast

On white

10.22
#542199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#542199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542199
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542199#FFFFFF#000000##FFFFFF
##5421991.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#41425C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542199;
/* rgb */ color: rgb(84, 33, 153);
/* oklch */ color: oklch(39.7% 0.179 296.5);
Tailwind
colors: {
  custom: {
    50: '#8b62b8',
    500: '#542199',
    950: '#000000',
  },
}
SCSS
$custom: #542199;
$custom-light: #8b62b8;
$custom-dark: #000000;
JSON
{
  "hex": "#542199",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 265.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39682,
    "c": 0.17932,
    "h": 296.5
  },
  "luminance": 0.05272
}

Semantic roles & 50–950 ramp

primary
#542199
secondary
#93BF56
accent
#E840A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #542199

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

Preview Lab → · Contrast checker → · Palette generator →

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