#542AA9#542AA9

#542AA9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.188 H 291.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#542AA9
RGBrgb(84, 42, 169)
HSLhsl(260, 60%, 41%)
HSVhsv(260, 75%, 66%)
CMYKcmyk(50.3%, 75.1%, 0%, 33.7%)
CIE-LABlab(30.41, 48.27, -60.98)
CIE-LCHlch(30.41, 77.77, 308.37°)
OKLaboklab(42.17% 0.068 -0.1751)
OKLCHoklch(42.17% 0.188 291.2)
XYZxyz(11.6435, 6.4049, 38.1512)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AA9 #7FA92A
analogous
#2A3FA9 #542AA9 #942AA9
triadic
#542AA9 #A9542A #2AA954
tetradic
#542AA9 #A92A3F #7FA92A #2AA994
square
#542AA9 #A92A3F #7FA92A #2AA994
split-complementary
#542AA9 #A9942A #3FA92A
monochromatic
#231247 #3C1E78 #542AA9 #7041D0 #9572DC

Accessibility & contrast

On white

9.21
#542AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#542AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542AA9
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AA9#FFFFFF#000000##FFFFFF
##542AA91.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#374C67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542aa9;
/* rgb */ color: rgb(84, 42, 169);
/* oklch */ color: oklch(42.2% 0.188 291.2);
Tailwind
colors: {
  custom: {
    50: '#8d68c4',
    500: '#542aa9',
    950: '#000000',
  },
}
SCSS
$custom: #542aa9;
$custom-light: #8d68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#542aa9",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 259.843,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42172,
    "c": 0.18783,
    "h": 291.2
  },
  "luminance": 0.06405
}

Semantic roles & 50–950 ramp

primary
#542AA9
secondary
#A6C36C
accent
#E344AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #542AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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