#542093#542093

#542093 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.174 H 298.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#542093
RGBrgb(84, 32, 147)
HSLhsl(267, 64%, 35%)
HSVhsv(267, 78%, 58%)
CMYKcmyk(42.9%, 78.2%, 0%, 42.4%)
CIE-LABlab(26.80, 47.03, -53.49)
CIE-LCHlch(26.80, 71.23, 311.33°)
OKLaboklab(39.03% 0.0824 -0.153)
OKLCHoklch(39.03% 0.174 298.3)
XYZxyz(9.4378, 5.0243, 28.0706)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542093 #5F9320
analogous
#202693 #542093 #8D2093
triadic
#542093 #935420 #209354
tetradic
#542093 #932026 #5F9320 #20938D
square
#542093 #932026 #5F9320 #20938D
split-complementary
#542093 #938D20 #269320
monochromatic
#1B0A2E #371561 #542093 #712BC5 #9054DA

Accessibility & contrast

On white

10.47
#542093 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542093
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542093#FFFFFF#000000##FFFFFF
##5420931.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#003E91
Tritanopia (blue-blind)
#443F59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #542093;
/* rgb */ color: rgb(84, 32, 147);
/* oklch */ color: oklch(39.0% 0.174 298.3);
Tailwind
colors: {
  custom: {
    50: '#8b62b4',
    500: '#542093',
    950: '#000000',
  },
}
SCSS
$custom: #542093;
$custom-light: #8b62b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542093",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 147
  },
  "hsl": {
    "h": 267.13,
    "s": 64.246,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39032,
    "c": 0.17383,
    "h": 298.3
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

primary
#542093
secondary
#8DBD52
accent
#E7419C
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #542093

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

Preview Lab → · Contrast checker → · Palette generator →

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