#542587#542587

#542587 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.155 H 301.3°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#542587
RGBrgb(84, 37, 135)
HSLhsl(269, 57%, 34%)
HSVhsv(269, 73%, 53%)
CMYKcmyk(37.8%, 72.6%, 0%, 47.1%)
CIE-LABlab(26.61, 41.57, -46.36)
CIE-LCHlch(26.61, 62.27, 311.89°)
OKLaboklab(38.58% 0.0804 -0.1321)
OKLCHoklch(38.58% 0.155 301.3)
XYZxyz(8.6898, 4.9572, 23.4160)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542587 #588725
analogous
#252787 #542587 #852587
triadic
#542587 #875425 #258754
tetradic
#542587 #872527 #588725 #258785
square
#542587 #872527 #588725 #258785
split-complementary
#542587 #878525 #278725
monochromatic
#180B27 #361857 #542587 #7232B7 #9156D1

Accessibility & contrast

On white

10.55
#542587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#542587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542587
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542587#FFFFFF#000000##FFFFFF
##5425871.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#493D53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #542587;
/* rgb */ color: rgb(84, 37, 135);
/* oklch */ color: oklch(38.6% 0.155 301.3);
Tailwind
colors: {
  custom: {
    50: '#8964ab',
    500: '#542587',
    950: '#000000',
  },
}
SCSS
$custom: #542587;
$custom-light: #8964ab;
$custom-dark: #000000;
JSON
{
  "hex": "#542587",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 268.776,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3858,
    "c": 0.15465,
    "h": 301.3
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#542587
secondary
#86B553
accent
#E04897
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542587

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

Preview Lab → · Contrast checker → · Palette generator →

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