#542EA0#542EA0

#542EA0 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.173 H 292.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#542EA0
RGBrgb(84, 46, 160)
HSLhsl(260, 55%, 40%)
HSVhsv(260, 71%, 63%)
CMYKcmyk(47.5%, 71.2%, 0%, 37.3%)
CIE-LABlab(30.34, 43.73, -55.66)
CIE-LCHlch(30.34, 70.78, 308.16°)
OKLaboklab(41.88% 0.0664 -0.1595)
OKLCHoklch(41.88% 0.173 292.6)
XYZxyz(10.9766, 6.3765, 33.9033)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EA0 #7AA02E
analogous
#2E41A0 #542EA0 #8D2EA0
triadic
#542EA0 #A0542E #2EA054
tetradic
#542EA0 #A02E41 #7AA02E #2EA08D
square
#542EA0 #A02E41 #7AA02E #2EA08D
split-complementary
#542EA0 #A08D2E #41A02E
monochromatic
#221341 #3B2070 #542EA0 #6F42C9 #9372D6

Accessibility & contrast

On white

9.23
#542EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#542EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EA0
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EA0#FFFFFF#000000##FFFFFF
##542EA01.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#3D4B64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542ea0;
/* rgb */ color: rgb(84, 46, 160);
/* oklch */ color: oklch(41.9% 0.173 292.6);
Tailwind
colors: {
  custom: {
    50: '#8b6abd',
    500: '#542ea0',
    950: '#000000',
  },
}
SCSS
$custom: #542ea0;
$custom-light: #8b6abd;
$custom-dark: #000000;
JSON
{
  "hex": "#542ea0",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 260,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4188,
    "c": 0.17278,
    "h": 292.6
  },
  "luminance": 0.06377
}

Semantic roles & 50–950 ramp

primary
#542EA0
secondary
#A3BE6C
accent
#DF49AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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