#542491#542491

#542491 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.167 H 298.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#542491
RGBrgb(84, 36, 145)
HSLhsl(266, 60%, 35%)
HSVhsv(266, 75%, 57%)
CMYKcmyk(42.1%, 75.2%, 0%, 43.1%)
CIE-LABlab(27.27, 44.68, -51.49)
CIE-LCHlch(27.27, 68.17, 310.95°)
OKLaboklab(39.31% 0.0793 -0.1472)
OKLCHoklch(39.31% 0.167 298.3)
XYZxyz(9.3966, 5.1908, 27.2894)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542491 #619124
analogous
#242A91 #542491 #8A2491
triadic
#542491 #915424 #249154
tetradic
#542491 #91242A #619124 #24918A
square
#542491 #91242A #619124 #24918A
split-complementary
#542491 #918A24 #2A9124
monochromatic
#1B0C2F #381860 #542491 #7030C2 #9059D6

Accessibility & contrast

On white

10.30
#542491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#542491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542491
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542491#FFFFFF#000000##FFFFFF
##5424911.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#454058
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542491;
/* rgb */ color: rgb(84, 36, 145);
/* oklch */ color: oklch(39.3% 0.167 298.3);
Tailwind
colors: {
  custom: {
    50: '#8a64b2',
    500: '#542491',
    950: '#000000',
  },
}
SCSS
$custom: #542491;
$custom-light: #8a64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#542491",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 266.422,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39306,
    "c": 0.16721,
    "h": 298.3
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#542491
secondary
#8EBA56
accent
#E3449D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542491

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

Preview Lab → · Contrast checker → · Palette generator →

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