#542AA2#542AA2

#542AA2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.180 H 292.8°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#542AA2
RGBrgb(84, 42, 162)
HSLhsl(261, 59%, 40%)
HSVhsv(261, 74%, 64%)
CMYKcmyk(48.1%, 74.1%, 0%, 36.5%)
CIE-LABlab(29.79, 46.34, -57.78)
CIE-LCHlch(29.79, 74.07, 308.73°)
OKLaboklab(41.54% 0.0697 -0.1657)
OKLCHoklch(41.54% 0.18 292.8)
XYZxyz(11.0039, 6.1490, 34.7825)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AA2 #78A22A
analogous
#2A3CA2 #542AA2 #902AA2
triadic
#542AA2 #A2542A #2AA254
tetradic
#542AA2 #A22A3C #78A22A #2AA290
square
#542AA2 #A22A3C #78A22A #2AA290
split-complementary
#542AA2 #A2902A #3CA22A
monochromatic
#221141 #3B1D71 #542AA2 #6F3DCD #936DD9

Accessibility & contrast

On white

9.42
#542AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#542AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542AA2
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AA2#FFFFFF#000000##FFFFFF
##542AA21.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#3C4A64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #542aa2;
/* rgb */ color: rgb(84, 42, 162);
/* oklch */ color: oklch(41.5% 0.180 292.8);
Tailwind
colors: {
  custom: {
    50: '#8c68bf',
    500: '#542aa2',
    950: '#000000',
  },
}
SCSS
$custom: #542aa2;
$custom-light: #8c68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#542aa2",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 261,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.41538,
    "c": 0.17978,
    "h": 292.8
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#542AA2
secondary
#A1C068
accent
#E246AB
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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