#542EA4#542EA4

#542EA4 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.178 H 291.7°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#542EA4
RGBrgb(84, 46, 164)
HSLhsl(259, 56%, 41%)
HSVhsv(259, 72%, 64%)
CMYKcmyk(48.8%, 72%, 0%, 35.7%)
CIE-LABlab(30.69, 44.86, -57.52)
CIE-LCHlch(30.69, 72.94, 307.95°)
OKLaboklab(42.23% 0.0656 -0.165)
OKLCHoklch(42.23% 0.178 291.7)
XYZxyz(11.3321, 6.5187, 35.7759)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EA4 #7EA42E
analogous
#2E43A4 #542EA4 #8F2EA4
triadic
#542EA4 #A4542E #2EA454
tetradic
#542EA4 #A42E43 #7EA42E #2EA48F
square
#542EA4 #A42E43 #7EA42E #2EA48F
split-complementary
#542EA4 #A48F2E #43A42E
monochromatic
#231344 #3C2174 #542EA4 #7045CB #9474D8

Accessibility & contrast

On white

9.12
#542EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#542EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EA4
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EA4#FFFFFF#000000##FFFFFF
##542EA41.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542ea4;
/* rgb */ color: rgb(84, 46, 164);
/* oklch */ color: oklch(42.2% 0.178 291.7);
Tailwind
colors: {
  custom: {
    50: '#8c6ac0',
    500: '#542ea4',
    950: '#000000',
  },
}
SCSS
$custom: #542ea4;
$custom-light: #8c6ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#542ea4",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 259.322,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42229,
    "c": 0.17753,
    "h": 291.7
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#542EA4
secondary
#A5C06E
accent
#DF48AF
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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