#542099#542099

#542099 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.180 H 296.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#542099
RGBrgb(84, 32, 153)
HSLhsl(266, 65%, 36%)
HSVhsv(266, 79%, 60%)
CMYKcmyk(45.1%, 79.1%, 0%, 40%)
CIE-LABlab(27.35, 48.58, -56.29)
CIE-LCHlch(27.35, 74.36, 310.80°)
OKLaboklab(39.58% 0.0807 -0.1613)
OKLCHoklch(39.58% 0.18 296.6)
XYZxyz(9.9209, 5.2175, 30.6152)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542099 #659920
analogous
#202999 #542099 #912099
triadic
#542099 #995420 #209954
tetradic
#542099 #992029 #659920 #209991
square
#542099 #992029 #659920 #209991
split-complementary
#542099 #999120 #299920
monochromatic
#1C0B34 #381566 #542099 #702BCC #9057DC

Accessibility & contrast

On white

10.28
#542099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542099
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542099#FFFFFF#000000##FFFFFF
##5420991.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542099;
/* rgb */ color: rgb(84, 32, 153);
/* oklch */ color: oklch(39.6% 0.180 296.6);
Tailwind
colors: {
  custom: {
    50: '#8b62b8',
    500: '#542099',
    950: '#000000',
  },
}
SCSS
$custom: #542099;
$custom-light: #8b62b8;
$custom-dark: #000000;
JSON
{
  "hex": "#542099",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 265.785,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39577,
    "c": 0.18033,
    "h": 296.6
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#542099
secondary
#92C055
accent
#E83FA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #542099

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

Preview Lab → · Contrast checker → · Palette generator →

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