#542189#542189

#542189 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.162 H 301.3°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#542189
RGBrgb(84, 33, 137)
HSLhsl(269, 61%, 33%)
HSVhsv(269, 76%, 54%)
CMYKcmyk(38.7%, 75.9%, 0%, 46.3%)
CIE-LABlab(26.09, 44.02, -48.45)
CIE-LCHlch(26.09, 65.46, 312.26°)
OKLaboklab(38.27% 0.0841 -0.1382)
OKLCHoklch(38.27% 0.162 301.3)
XYZxyz(8.7143, 4.7786, 24.1253)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542189 #568921
analogous
#212289 #542189 #882189
triadic
#542189 #895421 #218954
tetradic
#542189 #892122 #568921 #218988
square
#542189 #892122 #568921 #218988
split-complementary
#542189 #898821 #228921
monochromatic
#180926 #361558 #542189 #722DBA #9150D5

Accessibility & contrast

On white

10.74
#542189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#542189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542189
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542189#FFFFFF#000000##FFFFFF
##5421891.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#483B53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #542189;
/* rgb */ color: rgb(84, 33, 137);
/* oklch */ color: oklch(38.3% 0.162 301.3);
Tailwind
colors: {
  custom: {
    50: '#8962ac',
    500: '#542189',
    950: '#000000',
  },
}
SCSS
$custom: #542189;
$custom-light: #8962ac;
$custom-dark: #000000;
JSON
{
  "hex": "#542189",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 269.423,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38265,
    "c": 0.16179,
    "h": 301.3
  },
  "luminance": 0.04779
}

Semantic roles & 50–950 ramp

primary
#542189
secondary
#84B84E
accent
#E44495
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #542189

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

Preview Lab → · Contrast checker → · Palette generator →

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