#542E7E#542E7E

#542E7E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.131 H 302.6°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#542E7E
RGBrgb(84, 46, 126)
HSLhsl(269, 47%, 34%)
HSVhsv(269, 63%, 49%)
CMYKcmyk(33.3%, 63.5%, 0%, 50.6%)
CIE-LABlab(27.70, 34.35, -38.96)
CIE-LCHlch(27.70, 51.94, 311.40°)
OKLaboklab(39.15% 0.0707 -0.1104)
OKLCHoklch(39.15% 0.131 302.6)
XYZxyz(8.3982, 5.3452, 20.3239)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E7E #587E2E
analogous
#2E307E #542E7E #7C2E7E
triadic
#542E7E #7E542E #2E7E54
tetradic
#542E7E #7E2E30 #587E2E #2E7E7C
square
#542E7E #7E2E30 #587E2E #2E7E7C
split-complementary
#542E7E #7E7C2E #307E2E
monochromatic
#180D24 #361E51 #542E7E #723EAB #9161C5

Accessibility & contrast

On white

10.15
#542E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#542E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E7E
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E7E#FFFFFF#000000##FFFFFF
##542E7E1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#17417C
Tritanopia (blue-blind)
#4C3F51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542e7e;
/* rgb */ color: rgb(84, 46, 126);
/* oklch */ color: oklch(39.1% 0.131 302.6);
Tailwind
colors: {
  custom: {
    50: '#8769a4',
    500: '#542e7e',
    950: '#000000',
  },
}
SCSS
$custom: #542e7e;
$custom-light: #8769a4;
$custom-dark: #000000;
JSON
{
  "hex": "#542e7e",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 268.5,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39145,
    "c": 0.13113,
    "h": 302.6
  },
  "luminance": 0.05345
}

Semantic roles & 50–950 ramp

primary
#542E7E
secondary
#86AC5C
accent
#D65297
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #542E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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