#542591#542591

#542591 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.166 H 298.2°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#542591
RGBrgb(84, 37, 145)
HSLhsl(266, 59%, 36%)
HSVhsv(266, 74%, 57%)
CMYKcmyk(42.1%, 74.5%, 0%, 43.1%)
CIE-LABlab(27.44, 44.20, -51.22)
CIE-LCHlch(27.44, 67.65, 310.80°)
OKLaboklab(39.43% 0.0784 -0.1464)
OKLCHoklch(39.43% 0.166 298.2)
XYZxyz(9.4272, 5.2521, 27.2997)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542591 #629125
analogous
#252C91 #542591 #8A2591
triadic
#542591 #915425 #259154
tetradic
#542591 #91252C #629125 #25918A
square
#542591 #91252C #629125 #25918A
split-complementary
#542591 #918A25 #2C9125
monochromatic
#1C0C2F #381960 #542591 #7031C2 #905BD5

Accessibility & contrast

On white

10.24
#542591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#542591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542591
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542591#FFFFFF#000000##FFFFFF
##5425911.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#454159
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542591;
/* rgb */ color: rgb(84, 37, 145);
/* oklch */ color: oklch(39.4% 0.166 298.2);
Tailwind
colors: {
  custom: {
    50: '#8a64b2',
    500: '#542591',
    950: '#000000',
  },
}
SCSS
$custom: #542591;
$custom-light: #8a64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#542591",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 266.111,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39426,
    "c": 0.16604,
    "h": 298.2
  },
  "luminance": 0.05252
}

Semantic roles & 50–950 ramp

primary
#542591
secondary
#8FBA58
accent
#E3459E
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542591

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

Preview Lab → · Contrast checker → · Palette generator →

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