#542392#542392

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

Color values

HEX#542392
RGBrgb(84, 35, 146)
HSLhsl(266, 61%, 35%)
HSVhsv(266, 76%, 57%)
CMYKcmyk(42.5%, 76%, 0%, 42.7%)
CIE-LABlab(27.19, 45.41, -52.24)
CIE-LCHlch(27.19, 69.22, 311.00°)
OKLaboklab(39.28% 0.08 -0.1494)
OKLCHoklch(39.28% 0.169 298.2)
XYZxyz(9.4442, 5.1621, 27.6874)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542392 #619223
analogous
#232A92 #542392 #8B2392
triadic
#542392 #925423 #239254
tetradic
#542392 #92232A #619223 #23928B
square
#542392 #92232A #619223 #23928B
split-complementary
#542392 #928B23 #2A9223
monochromatic
#1B0B2F #381761 #542392 #702FC3 #9058D7

Accessibility & contrast

On white

10.33
#542392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#542392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542392
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542392#FFFFFF#000000##FFFFFF
##5423921.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542392;
/* rgb */ color: rgb(84, 35, 146);
/* oklch */ color: oklch(39.3% 0.169 298.2);
Tailwind
colors: {
  custom: {
    50: '#8a63b3',
    500: '#542392',
    950: '#000000',
  },
}
SCSS
$custom: #542392;
$custom-light: #8a63b3;
$custom-dark: #000000;
JSON
{
  "hex": "#542392",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 266.486,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39277,
    "c": 0.16947,
    "h": 298.2
  },
  "luminance": 0.05162
}

Semantic roles & 50–950 ramp

primary
#542392
secondary
#8EBB55
accent
#E4439D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542392

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

Preview Lab → · Contrast checker → · Palette generator →

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