#542AA4#542AA4

#542AA4 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.182 H 292.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#542AA4
RGBrgb(84, 42, 164)
HSLhsl(261, 59%, 40%)
HSVhsv(261, 74%, 64%)
CMYKcmyk(48.8%, 74.4%, 0%, 35.7%)
CIE-LABlab(29.96, 46.89, -58.70)
CIE-LCHlch(29.96, 75.13, 308.62°)
OKLaboklab(41.72% 0.0693 -0.1684)
OKLCHoklch(41.72% 0.182 292.4)
XYZxyz(11.1831, 6.2207, 35.7262)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AA4 #7AA42A
analogous
#2A3DA4 #542AA4 #912AA4
triadic
#542AA4 #A4542A #2AA454
tetradic
#542AA4 #A42A3D #7AA42A #2AA491
square
#542AA4 #A42A3D #7AA42A #2AA491
split-complementary
#542AA4 #A4912A #3DA42A
monochromatic
#221143 #3B1E73 #542AA4 #6F3ECD #936EDA

Accessibility & contrast

On white

9.36
#542AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#542AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542AA4
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AA4#FFFFFF#000000##FFFFFF
##542AA41.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#3B4A65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542aa4;
/* rgb */ color: rgb(84, 42, 164);
/* oklch */ color: oklch(41.7% 0.182 292.4);
Tailwind
colors: {
  custom: {
    50: '#8c68c0',
    500: '#542aa4',
    950: '#000000',
  },
}
SCSS
$custom: #542aa4;
$custom-light: #8c68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#542aa4",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 260.656,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41718,
    "c": 0.18209,
    "h": 292.4
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#542AA4
secondary
#A3C169
accent
#E245AC
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542AA4

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

Preview Lab → · Contrast checker → · Palette generator →

#542AA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva