#542E9E#542E9E

#542E9E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.170 H 293.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#542E9E
RGBrgb(84, 46, 158)
HSLhsl(260, 55%, 40%)
HSVhsv(260, 71%, 62%)
CMYKcmyk(46.8%, 70.9%, 0%, 38%)
CIE-LABlab(30.17, 43.17, -54.72)
CIE-LCHlch(30.17, 69.70, 308.27°)
OKLaboklab(41.71% 0.0668 -0.1567)
OKLCHoklch(41.71% 0.17 293.1)
XYZxyz(10.8030, 6.3071, 32.9893)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E9E #789E2E
analogous
#2E409E #542E9E #8C2E9E
triadic
#542E9E #9E542E #2E9E54
tetradic
#542E9E #9E2E40 #789E2E #2E9E8C
square
#542E9E #9E2E40 #789E2E #2E9E8C
split-complementary
#542E9E #9E8C2E #409E2E
monochromatic
#22123F #3B206F #542E9E #6F41C8 #9371D6

Accessibility & contrast

On white

9.29
#542E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542E9E
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E9E#FFFFFF#000000##FFFFFF
##542E9E1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#3E4A62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542e9e;
/* rgb */ color: rgb(84, 46, 158);
/* oklch */ color: oklch(41.7% 0.170 293.1);
Tailwind
colors: {
  custom: {
    50: '#8b6abc',
    500: '#542e9e',
    950: '#000000',
  },
}
SCSS
$custom: #542e9e;
$custom-light: #8b6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#542e9e",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 260.357,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.41708,
    "c": 0.17038,
    "h": 293.1
  },
  "luminance": 0.06307
}

Semantic roles & 50–950 ramp

primary
#542E9E
secondary
#A1BD6B
accent
#DE4AAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #542E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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