#542899#542899

#542899 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.172 H 295.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#542899
RGBrgb(84, 40, 153)
HSLhsl(263, 59%, 38%)
HSVhsv(263, 74%, 60%)
CMYKcmyk(45.1%, 73.9%, 0%, 40%)
CIE-LABlab(28.65, 44.87, -54.16)
CIE-LCHlch(28.65, 70.33, 309.64°)
OKLaboklab(40.49% 0.0737 -0.1551)
OKLCHoklch(40.49% 0.172 295.4)
XYZxyz(10.1632, 5.7021, 30.6960)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542899 #6D9928
analogous
#283499 #542899 #8C2899
triadic
#542899 #995428 #289954
tetradic
#542899 #992834 #6D9928 #28998C
square
#542899 #992834 #6D9928 #28998C
split-complementary
#542899 #998C28 #349928
monochromatic
#1F0F38 #391B68 #542899 #6F35CA #9165D7

Accessibility & contrast

On white

9.81
#542899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#542899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542899
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542899#FFFFFF#000000##FFFFFF
##5428991.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#41455E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542899;
/* rgb */ color: rgb(84, 40, 153);
/* oklch */ color: oklch(40.5% 0.172 295.4);
Tailwind
colors: {
  custom: {
    50: '#8b66b8',
    500: '#542899',
    950: '#000000',
  },
}
SCSS
$custom: #542899;
$custom-light: #8b66b8;
$custom-dark: #000000;
JSON
{
  "hex": "#542899",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 263.363,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40492,
    "c": 0.17168,
    "h": 295.4
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#542899
secondary
#99BD60
accent
#E246A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542899

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

Preview Lab → · Contrast checker → · Palette generator →

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