#542E8A#542E8A

#542E8A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.146 H 298.6°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#542E8A
RGBrgb(84, 46, 138)
HSLhsl(265, 50%, 36%)
HSVhsv(265, 67%, 54%)
CMYKcmyk(39.1%, 66.7%, 0%, 45.9%)
CIE-LABlab(28.57, 37.61, -45.04)
CIE-LCHlch(28.57, 58.68, 309.86°)
OKLaboklab(40.06% 0.0698 -0.1283)
OKLCHoklch(40.06% 0.146 298.6)
XYZxyz(9.2194, 5.6737, 24.6492)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E8A #648A2E
analogous
#2E368A #542E8A #822E8A
triadic
#542E8A #8A542E #2E8A54
tetradic
#542E8A #8A2E36 #648A2E #2E8A82
square
#542E8A #8A2E36 #648A2E #2E8A82
split-complementary
#542E8A #8A822E #368A2E
monochromatic
#1C0F2E #381F5C #542E8A #703DB8 #9066CC

Accessibility & contrast

On white

9.84
#542E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#542E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E8A
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E8A#FFFFFF#000000##FFFFFF
##542E8A1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#474358
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #542e8a;
/* rgb */ color: rgb(84, 46, 138);
/* oklch */ color: oklch(40.1% 0.146 298.6);
Tailwind
colors: {
  custom: {
    50: '#8969ad',
    500: '#542e8a',
    950: '#000000',
  },
}
SCSS
$custom: #542e8a;
$custom-light: #8969ad;
$custom-dark: #000000;
JSON
{
  "hex": "#542e8a",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 264.783,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40059,
    "c": 0.14605,
    "h": 298.6
  },
  "luminance": 0.05674
}

Semantic roles & 50–950 ramp

primary
#542E8A
secondary
#91B361
accent
#DA4EA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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