#542094#542094

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

Color values

HEX#542094
RGBrgb(84, 32, 148)
HSLhsl(267, 64%, 35%)
HSVhsv(267, 78%, 58%)
CMYKcmyk(43.2%, 78.4%, 0%, 42%)
CIE-LABlab(26.89, 47.29, -53.96)
CIE-LCHlch(26.89, 71.75, 311.23°)
OKLaboklab(39.12% 0.0822 -0.1544)
OKLCHoklch(39.12% 0.175 298)
XYZxyz(9.5166, 5.0558, 28.4857)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542094 #609420
analogous
#202694 #542094 #8E2094
triadic
#542094 #945420 #209454
tetradic
#542094 #942026 #609420 #20948E
square
#542094 #942026 #609420 #20948E
split-complementary
#542094 #948E20 #269420
monochromatic
#1B0A2F #371562 #542094 #712BC6 #9054DA

Accessibility & contrast

On white

10.44
#542094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542094
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542094#FFFFFF#000000##FFFFFF
##5420941.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542094;
/* rgb */ color: rgb(84, 32, 148);
/* oklch */ color: oklch(39.1% 0.175 298.0);
Tailwind
colors: {
  custom: {
    50: '#8b62b4',
    500: '#542094',
    950: '#000000',
  },
}
SCSS
$custom: #542094;
$custom-light: #8b62b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542094",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 148
  },
  "hsl": {
    "h": 266.897,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39122,
    "c": 0.17492,
    "h": 298
  },
  "luminance": 0.05056
}

Semantic roles & 50–950 ramp

primary
#542094
secondary
#8DBE52
accent
#E7409D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #542094

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

Preview Lab → · Contrast checker → · Palette generator →

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