#542498#542498

#542498 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.175 H 296.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#542498
RGBrgb(84, 36, 152)
HSLhsl(265, 62%, 37%)
HSVhsv(265, 76%, 60%)
CMYKcmyk(44.7%, 76.3%, 0%, 40.4%)
CIE-LABlab(27.88, 46.53, -54.80)
CIE-LCHlch(27.88, 71.89, 310.33°)
OKLaboklab(39.92% 0.0776 -0.1569)
OKLCHoklch(39.92% 0.175 296.3)
XYZxyz(9.9530, 5.4133, 30.2202)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542498 #689824
analogous
#242E98 #542498 #8E2498
triadic
#542498 #985424 #249854
tetradic
#542498 #98242E #689824 #24988E
square
#542498 #98242E #689824 #24988E
split-complementary
#542498 #988E24 #2E9824
monochromatic
#1D0D35 #391867 #542498 #6F30C9 #915ED9

Accessibility & contrast

On white

10.08
#542498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#542498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542498
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542498#FFFFFF#000000##FFFFFF
##5424981.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#42435C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542498;
/* rgb */ color: rgb(84, 36, 152);
/* oklch */ color: oklch(39.9% 0.175 296.3);
Tailwind
colors: {
  custom: {
    50: '#8b64b7',
    500: '#542498',
    950: '#000000',
  },
}
SCSS
$custom: #542498;
$custom-light: #8b64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542498",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 264.828,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39924,
    "c": 0.17505,
    "h": 296.3
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#542498
secondary
#94BE5A
accent
#E543A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542498

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

Preview Lab → · Contrast checker → · Palette generator →

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