#542098#542098

#542098 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.179 H 296.9°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#542098
RGBrgb(84, 32, 152)
HSLhsl(266, 65%, 36%)
HSVhsv(266, 79%, 60%)
CMYKcmyk(44.7%, 78.9%, 0%, 40.4%)
CIE-LABlab(27.25, 48.33, -55.83)
CIE-LCHlch(27.25, 73.84, 310.88°)
OKLaboklab(39.49% 0.081 -0.1599)
OKLCHoklch(39.49% 0.179 296.9)
XYZxyz(9.8387, 5.1846, 30.1820)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542098 #649820
analogous
#202898 #542098 #902098
triadic
#542098 #985420 #209854
tetradic
#542098 #982028 #649820 #209890
square
#542098 #982028 #649820 #209890
split-complementary
#542098 #989020 #289820
monochromatic
#1C0B33 #381565 #542098 #702BCB #9057DC

Accessibility & contrast

On white

10.31
#542098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#542098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542098
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542098#FFFFFF#000000##FFFFFF
##5420981.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#42415C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542098;
/* rgb */ color: rgb(84, 32, 152);
/* oklch */ color: oklch(39.5% 0.179 296.9);
Tailwind
colors: {
  custom: {
    50: '#8b62b7',
    500: '#542098',
    950: '#000000',
  },
}
SCSS
$custom: #542098;
$custom-light: #8b62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542098",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 266,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39485,
    "c": 0.17925,
    "h": 296.9
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

primary
#542098
secondary
#91BF54
accent
#E8409F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #542098

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

Preview Lab → · Contrast checker → · Palette generator →

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