#542292#542292

#542292 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.171 H 298.3°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#542292
RGBrgb(84, 34, 146)
HSLhsl(267, 62%, 35%)
HSVhsv(267, 77%, 57%)
CMYKcmyk(42.5%, 76.7%, 0%, 42.7%)
CIE-LABlab(27.03, 45.88, -52.51)
CIE-LCHlch(27.03, 69.73, 311.15°)
OKLaboklab(39.16% 0.0809 -0.1502)
OKLCHoklch(39.16% 0.171 298.3)
XYZxyz(9.4152, 5.1040, 27.6777)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542292 #609222
analogous
#222892 #542292 #8C2292
triadic
#542292 #925422 #229254
tetradic
#542292 #922228 #609222 #22928C
square
#542292 #922228 #609222 #22928C
split-complementary
#542292 #928C22 #289222
monochromatic
#1B0B2F #371660 #542292 #712EC4 #9057D8

Accessibility & contrast

On white

10.39
#542292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#542292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542292
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542292#FFFFFF#000000##FFFFFF
##5422921.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542292;
/* rgb */ color: rgb(84, 34, 146);
/* oklch */ color: oklch(39.2% 0.171 298.3);
Tailwind
colors: {
  custom: {
    50: '#8a63b3',
    500: '#542292',
    950: '#000000',
  },
}
SCSS
$custom: #542292;
$custom-light: #8a63b3;
$custom-dark: #000000;
JSON
{
  "hex": "#542292",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 266.786,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39162,
    "c": 0.17059,
    "h": 298.3
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#542292
secondary
#8DBC54
accent
#E5439D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #542292

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

Preview Lab → · Contrast checker → · Palette generator →

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