#542FA4#542FA4

#542FA4 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.176 H 291.5°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#542FA4
RGBrgb(84, 47, 164)
HSLhsl(259, 55%, 41%)
HSVhsv(259, 71%, 64%)
CMYKcmyk(48.8%, 71.3%, 0%, 35.7%)
CIE-LABlab(30.87, 44.34, -57.21)
CIE-LCHlch(30.87, 72.38, 307.77°)
OKLaboklab(42.36% 0.0647 -0.164)
OKLCHoklch(42.36% 0.176 291.5)
XYZxyz(11.3716, 6.5978, 35.7891)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FA4 #7FA42F
analogous
#2F45A4 #542FA4 #8F2FA4
triadic
#542FA4 #A4542F #2FA454
tetradic
#542FA4 #A42F45 #7FA42F #2FA48F
square
#542FA4 #A42F45 #7FA42F #2FA48F
split-complementary
#542FA4 #A48F2F #45A42F
monochromatic
#231445 #3C2174 #542FA4 #7046CA #9576D8

Accessibility & contrast

On white

9.05
#542FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#542FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FA4
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FA4#FFFFFF#000000##FFFFFF
##542FA41.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#3A4D66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542fa4;
/* rgb */ color: rgb(84, 47, 164);
/* oklch */ color: oklch(42.4% 0.176 291.5);
Tailwind
colors: {
  custom: {
    50: '#8c6bc0',
    500: '#542fa4',
    950: '#000000',
  },
}
SCSS
$custom: #542fa4;
$custom-light: #8c6bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#542fa4",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 258.974,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42363,
    "c": 0.17635,
    "h": 291.5
  },
  "luminance": 0.06598
}

Semantic roles & 50–950 ramp

primary
#542FA4
secondary
#A6C06F
accent
#DF49AF
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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