#542192#542192

#542192 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.172 H 298.5°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#542192
RGBrgb(84, 33, 146)
HSLhsl(267, 63%, 35%)
HSVhsv(267, 77%, 57%)
CMYKcmyk(42.5%, 77.4%, 0%, 42.7%)
CIE-LABlab(26.87, 46.33, -52.76)
CIE-LCHlch(26.87, 70.22, 311.29°)
OKLaboklab(39.05% 0.0818 -0.1509)
OKLCHoklch(39.05% 0.172 298.5)
XYZxyz(9.3870, 5.0477, 27.6683)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542192 #5F9221
analogous
#212692 #542192 #8D2192
triadic
#542192 #925421 #219254
tetradic
#542192 #922126 #5F9221 #21928D
square
#542192 #922126 #5F9221 #21928D
split-complementary
#542192 #928D21 #269221
monochromatic
#1B0A2E #371660 #542192 #712CC4 #9055D9

Accessibility & contrast

On white

10.45
#542192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#542192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542192
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542192#FFFFFF#000000##FFFFFF
##5421921.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542192;
/* rgb */ color: rgb(84, 33, 146);
/* oklch */ color: oklch(39.1% 0.172 298.5);
Tailwind
colors: {
  custom: {
    50: '#8a62b3',
    500: '#542192',
    950: '#000000',
  },
}
SCSS
$custom: #542192;
$custom-light: #8a62b3;
$custom-dark: #000000;
JSON
{
  "hex": "#542192",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 267.08,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39051,
    "c": 0.17168,
    "h": 298.5
  },
  "luminance": 0.05048
}

Semantic roles & 50–950 ramp

primary
#542192
secondary
#8DBC53
accent
#E6429C
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #542192

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

Preview Lab → · Contrast checker → · Palette generator →

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