#542AA0#542AA0

#542AA0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.177 H 293.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#542AA0
RGBrgb(84, 42, 160)
HSLhsl(261, 58%, 40%)
HSVhsv(261, 74%, 63%)
CMYKcmyk(47.5%, 73.8%, 0%, 37.3%)
CIE-LABlab(29.61, 45.79, -56.85)
CIE-LCHlch(29.61, 73.00, 308.85°)
OKLaboklab(41.36% 0.0702 -0.163)
OKLCHoklch(41.36% 0.177 293.3)
XYZxyz(10.8275, 6.0785, 33.8537)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AA0 #76A02A
analogous
#2A3BA0 #542AA0 #8F2AA0
triadic
#542AA0 #A0542A #2AA054
tetradic
#542AA0 #A02A3B #76A02A #2AA08F
square
#542AA0 #A02A3B #76A02A #2AA08F
split-complementary
#542AA0 #A08F2A #3BA02A
monochromatic
#21113F #3B1D70 #542AA0 #6F3CCC #936CD8

Accessibility & contrast

On white

9.48
#542AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#542AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542AA0
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AA0#FFFFFF#000000##FFFFFF
##542AA01.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#3D4962
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #542aa0;
/* rgb */ color: rgb(84, 42, 160);
/* oklch */ color: oklch(41.4% 0.177 293.3);
Tailwind
colors: {
  custom: {
    50: '#8c68bd',
    500: '#542aa0',
    950: '#000000',
  },
}
SCSS
$custom: #542aa0;
$custom-light: #8c68bd;
$custom-dark: #000000;
JSON
{
  "hex": "#542aa0",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 261.356,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4136,
    "c": 0.17746,
    "h": 293.3
  },
  "luminance": 0.06079
}

Semantic roles & 50–950 ramp

primary
#542AA0
secondary
#A0BF67
accent
#E246AA
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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