#542AA6#542AA6

#542AA6 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.184 H 291.9°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#542AA6
RGBrgb(84, 42, 166)
HSLhsl(260, 60%, 41%)
HSVhsv(260, 75%, 65%)
CMYKcmyk(49.4%, 74.7%, 0%, 34.9%)
CIE-LABlab(30.14, 47.44, -59.61)
CIE-LCHlch(30.14, 76.19, 308.51°)
OKLaboklab(41.9% 0.0688 -0.1711)
OKLCHoklch(41.9% 0.184 291.9)
XYZxyz(11.3651, 6.2935, 36.6849)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AA6 #7CA62A
analogous
#2A3EA6 #542AA6 #922AA6
triadic
#542AA6 #A6542A #2AA654
tetradic
#542AA6 #A62A3E #7CA62A #2AA692
square
#542AA6 #A62A3E #7CA62A #2AA692
split-complementary
#542AA6 #A6922A #3EA62A
monochromatic
#231144 #3B1E75 #542AA6 #6F3FCE #9470DB

Accessibility & contrast

On white

9.30
#542AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#542AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542AA6
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AA6#FFFFFF#000000##FFFFFF
##542AA61.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#394B66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542aa6;
/* rgb */ color: rgb(84, 42, 166);
/* oklch */ color: oklch(41.9% 0.184 291.9);
Tailwind
colors: {
  custom: {
    50: '#8c68c1',
    500: '#542aa6',
    950: '#000000',
  },
}
SCSS
$custom: #542aa6;
$custom-light: #8c68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#542aa6",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 260.323,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41899,
    "c": 0.18438,
    "h": 291.9
  },
  "luminance": 0.06294
}

Semantic roles & 50–950 ramp

primary
#542AA6
secondary
#A4C26A
accent
#E345AD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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