#542492#542492

#542492 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.168 H 298.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#542492
RGBrgb(84, 36, 146)
HSLhsl(266, 60%, 36%)
HSVhsv(266, 75%, 57%)
CMYKcmyk(42.5%, 75.3%, 0%, 42.7%)
CIE-LABlab(27.36, 44.94, -51.97)
CIE-LCHlch(27.36, 68.71, 310.85°)
OKLaboklab(39.39% 0.0791 -0.1486)
OKLCHoklch(39.39% 0.168 298)
XYZxyz(9.4740, 5.2217, 27.6973)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542492 #629224
analogous
#242B92 #542492 #8B2492
triadic
#542492 #925424 #249254
tetradic
#542492 #92242B #629224 #24928B
square
#542492 #92242B #629224 #24928B
split-complementary
#542492 #928B24 #2B9224
monochromatic
#1C0C30 #381861 #542492 #7030C3 #905AD6

Accessibility & contrast

On white

10.27
#542492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542492
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542492#FFFFFF#000000##FFFFFF
##5424921.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#444059
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542492;
/* rgb */ color: rgb(84, 36, 146);
/* oklch */ color: oklch(39.4% 0.168 298.0);
Tailwind
colors: {
  custom: {
    50: '#8a64b3',
    500: '#542492',
    950: '#000000',
  },
}
SCSS
$custom: #542492;
$custom-light: #8a64b3;
$custom-dark: #000000;
JSON
{
  "hex": "#542492",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 266.182,
    "s": 60.44,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39394,
    "c": 0.16833,
    "h": 298
  },
  "luminance": 0.05222
}

Semantic roles & 50–950 ramp

primary
#542492
secondary
#8FBB57
accent
#E4449E
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542492

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

Preview Lab → · Contrast checker → · Palette generator →

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