#542FA3#542FA3

#542FA3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.175 H 291.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#542FA3
RGBrgb(84, 47, 163)
HSLhsl(259, 55%, 41%)
HSVhsv(259, 71%, 64%)
CMYKcmyk(48.5%, 71.2%, 0%, 36.1%)
CIE-LABlab(30.79, 44.05, -56.75)
CIE-LCHlch(30.79, 71.84, 307.82°)
OKLaboklab(42.28% 0.0649 -0.1627)
OKLCHoklch(42.28% 0.175 291.7)
XYZxyz(11.2817, 6.5618, 35.3154)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FA3 #7EA32F
analogous
#2F44A3 #542FA3 #8E2FA3
triadic
#542FA3 #A3542F #2FA354
tetradic
#542FA3 #A32F44 #7EA32F #2FA38E
square
#542FA3 #A32F44 #7EA32F #2FA38E
split-complementary
#542FA3 #A38E2F #44A32F
monochromatic
#231444 #3C2173 #542FA3 #7046CA #9475D7

Accessibility & contrast

On white

9.08
#542FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#542FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FA3
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FA3#FFFFFF#000000##FFFFFF
##542FA31.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#3B4D65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542fa3;
/* rgb */ color: rgb(84, 47, 163);
/* oklch */ color: oklch(42.3% 0.175 291.7);
Tailwind
colors: {
  custom: {
    50: '#8c6bbf',
    500: '#542fa3',
    950: '#000000',
  },
}
SCSS
$custom: #542fa3;
$custom-light: #8c6bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#542fa3",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 259.138,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42276,
    "c": 0.17515,
    "h": 291.7
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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