#542497#542497

#542497 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.174 H 296.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#542497
RGBrgb(84, 36, 151)
HSLhsl(265, 61%, 37%)
HSVhsv(265, 76%, 59%)
CMYKcmyk(44.4%, 76.2%, 0%, 40.8%)
CIE-LABlab(27.79, 46.26, -54.33)
CIE-LCHlch(27.79, 71.36, 310.41°)
OKLaboklab(39.84% 0.0779 -0.1555)
OKLCHoklch(39.84% 0.174 296.6)
XYZxyz(9.8715, 5.3807, 29.7906)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542497 #679724
analogous
#242E97 #542497 #8E2497
triadic
#542497 #975424 #249754
tetradic
#542497 #97242E #679724 #24978E
square
#542497 #97242E #679724 #24978E
split-complementary
#542497 #978E24 #2E9724
monochromatic
#1D0C34 #391866 #542497 #6F30C8 #915DD8

Accessibility & contrast

On white

10.11
#542497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542497
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542497#FFFFFF#000000##FFFFFF
##5424971.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#42425C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542497;
/* rgb */ color: rgb(84, 36, 151);
/* oklch */ color: oklch(39.8% 0.174 296.6);
Tailwind
colors: {
  custom: {
    50: '#8b64b7',
    500: '#542497',
    950: '#000000',
  },
}
SCSS
$custom: #542497;
$custom-light: #8b64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542497",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 265.043,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39835,
    "c": 0.17394,
    "h": 296.6
  },
  "luminance": 0.05381
}

Semantic roles & 50–950 ramp

primary
#542497
secondary
#94BD5A
accent
#E543A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542497

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

Preview Lab → · Contrast checker → · Palette generator →

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