#542193#542193

#542193 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.173 H 298.2°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#542193
RGBrgb(84, 33, 147)
HSLhsl(267, 63%, 35%)
HSVhsv(267, 78%, 58%)
CMYKcmyk(42.9%, 77.6%, 0%, 42.4%)
CIE-LABlab(26.96, 46.59, -53.24)
CIE-LCHlch(26.96, 70.74, 311.19°)
OKLaboklab(39.14% 0.0816 -0.1523)
OKLCHoklch(39.14% 0.173 298.2)
XYZxyz(9.4651, 5.0790, 28.0798)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542193 #609321
analogous
#212793 #542193 #8D2193
triadic
#542193 #935421 #219354
tetradic
#542193 #932127 #609321 #21938D
square
#542193 #932127 #609321 #21938D
split-complementary
#542193 #938D21 #279321
monochromatic
#1B0B2F #371661 #542193 #712CC5 #9055D9

Accessibility & contrast

On white

10.42
#542193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542193
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542193#FFFFFF#000000##FFFFFF
##5421931.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003E91
Tritanopia (blue-blind)
#443F59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542193;
/* rgb */ color: rgb(84, 33, 147);
/* oklch */ color: oklch(39.1% 0.173 298.2);
Tailwind
colors: {
  custom: {
    50: '#8b62b4',
    500: '#542193',
    950: '#000000',
  },
}
SCSS
$custom: #542193;
$custom-light: #8b62b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542193",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 266.842,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3914,
    "c": 0.17278,
    "h": 298.2
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#542193
secondary
#8DBD53
accent
#E6419D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #542193

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

Preview Lab → · Contrast checker → · Palette generator →

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