#542AA1#542AA1

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

Color values

HEX#542AA1
RGBrgb(84, 42, 161)
HSLhsl(261, 59%, 40%)
HSVhsv(261, 74%, 63%)
CMYKcmyk(47.8%, 73.9%, 0%, 36.9%)
CIE-LABlab(29.70, 46.06, -57.32)
CIE-LCHlch(29.70, 73.53, 308.79°)
OKLaboklab(41.45% 0.07 -0.1643)
OKLCHoklch(41.45% 0.179 293.1)
XYZxyz(10.9154, 6.1136, 34.3162)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AA1 #77A12A
analogous
#2A3CA1 #542AA1 #8F2AA1
triadic
#542AA1 #A1542A #2AA154
tetradic
#542AA1 #A12A3C #77A12A #2AA18F
square
#542AA1 #A12A3C #77A12A #2AA18F
split-complementary
#542AA1 #A18F2A #3CA12A
monochromatic
#211140 #3B1D70 #542AA1 #6F3CCC #936DD9

Accessibility & contrast

On white

9.45
#542AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542AA1
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AA1#FFFFFF#000000##FFFFFF
##542AA11.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#3C4963
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #542aa1;
/* rgb */ color: rgb(84, 42, 161);
/* oklch */ color: oklch(41.4% 0.179 293.1);
Tailwind
colors: {
  custom: {
    50: '#8c68be',
    500: '#542aa1',
    950: '#000000',
  },
}
SCSS
$custom: #542aa1;
$custom-light: #8c68be;
$custom-dark: #000000;
JSON
{
  "hex": "#542aa1",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 261.176,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41449,
    "c": 0.17862,
    "h": 293.1
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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