#542089#542089

#542089 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.163 H 301.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#542089
RGBrgb(84, 32, 137)
HSLhsl(270, 62%, 33%)
HSVhsv(270, 77%, 54%)
CMYKcmyk(38.7%, 76.6%, 0%, 46.3%)
CIE-LABlab(25.93, 44.48, -48.71)
CIE-LCHlch(25.93, 65.96, 312.40°)
OKLaboklab(38.15% 0.085 -0.139)
OKLCHoklch(38.15% 0.163 301.5)
XYZxyz(8.6869, 4.7239, 24.1162)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542089 #558920
analogous
#202189 #542089 #882089
triadic
#542089 #895420 #208954
tetradic
#542089 #892021 #558920 #208988
square
#542089 #892021 #558920 #208988
split-complementary
#542089 #898820 #218920
monochromatic
#170926 #361457 #542089 #722CBB #914ED6

Accessibility & contrast

On white

10.80
#542089 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#542089 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542089
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542089#FFFFFF#000000##FFFFFF
##5420891.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542089;
/* rgb */ color: rgb(84, 32, 137);
/* oklch */ color: oklch(38.2% 0.163 301.5);
Tailwind
colors: {
  custom: {
    50: '#8961ac',
    500: '#542089',
    950: '#000000',
  },
}
SCSS
$custom: #542089;
$custom-light: #8961ac;
$custom-dark: #000000;
JSON
{
  "hex": "#542089",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 137
  },
  "hsl": {
    "h": 269.714,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38151,
    "c": 0.16295,
    "h": 301.5
  },
  "luminance": 0.04724
}

Semantic roles & 50–950 ramp

primary
#542089
secondary
#83B94C
accent
#E54395
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #542089

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

Preview Lab → · Contrast checker → · Palette generator →

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