#542092#542092

#542092 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.173 H 298.6°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#542092
RGBrgb(84, 32, 146)
HSLhsl(267, 64%, 35%)
HSVhsv(267, 78%, 57%)
CMYKcmyk(42.5%, 78.1%, 0%, 42.7%)
CIE-LABlab(26.71, 46.78, -53.02)
CIE-LCHlch(26.71, 70.70, 311.42°)
OKLaboklab(38.94% 0.0827 -0.1517)
OKLCHoklch(38.94% 0.173 298.6)
XYZxyz(9.3596, 4.9930, 27.6592)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542092 #5E9220
analogous
#202592 #542092 #8D2092
triadic
#542092 #925420 #209254
tetradic
#542092 #922025 #5E9220 #20928D
square
#542092 #922025 #5E9220 #20928D
split-complementary
#542092 #928D20 #259220
monochromatic
#1A0A2E #371560 #542092 #712BC4 #9053D9

Accessibility & contrast

On white

10.51
#542092 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#542092 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542092
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542092#FFFFFF#000000##FFFFFF
##5420921.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#003E90
Tritanopia (blue-blind)
#453E58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #542092;
/* rgb */ color: rgb(84, 32, 146);
/* oklch */ color: oklch(38.9% 0.173 298.6);
Tailwind
colors: {
  custom: {
    50: '#8a62b3',
    500: '#542092',
    950: '#000000',
  },
}
SCSS
$custom: #542092;
$custom-light: #8a62b3;
$custom-dark: #000000;
JSON
{
  "hex": "#542092",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 146
  },
  "hsl": {
    "h": 267.368,
    "s": 64.045,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38942,
    "c": 0.17275,
    "h": 298.6
  },
  "luminance": 0.04993
}

Semantic roles & 50–950 ramp

primary
#542092
secondary
#8CBD51
accent
#E7419B
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #542092

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

Preview Lab → · Contrast checker → · Palette generator →

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