#542499#542499

#542499 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.176 H 296.0°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#542499
RGBrgb(84, 36, 153)
HSLhsl(265, 62%, 37%)
HSVhsv(265, 76%, 60%)
CMYKcmyk(45.1%, 76.5%, 0%, 40%)
CIE-LABlab(27.97, 46.79, -55.27)
CIE-LCHlch(27.97, 72.42, 310.25°)
OKLaboklab(40.01% 0.0773 -0.1583)
OKLCHoklch(40.01% 0.176 296)
XYZxyz(10.0353, 5.4462, 30.6533)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542499 #699924
analogous
#242F99 #542499 #8F2499
triadic
#542499 #995424 #249954
tetradic
#542499 #99242F #699924 #24998F
square
#542499 #99242F #699924 #24998F
split-complementary
#542499 #998F24 #2F9924
monochromatic
#1E0D36 #391867 #542499 #6F30CB #915ED9

Accessibility & contrast

On white

10.05
#542499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#542499 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542499
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542499#FFFFFF#000000##FFFFFF
##5424991.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#41435D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542499;
/* rgb */ color: rgb(84, 36, 153);
/* oklch */ color: oklch(40.0% 0.176 296.0);
Tailwind
colors: {
  custom: {
    50: '#8b64b8',
    500: '#542499',
    950: '#000000',
  },
}
SCSS
$custom: #542499;
$custom-light: #8b64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#542499",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 153
  },
  "hsl": {
    "h": 264.615,
    "s": 61.905,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40014,
    "c": 0.17617,
    "h": 296
  },
  "luminance": 0.05446
}

Semantic roles & 50–950 ramp

primary
#542499
secondary
#95BE5B
accent
#E543A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #542499

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

Preview Lab → · Contrast checker → · Palette generator →

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