#542E7D#542E7D

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

Color values

HEX#542E7D
RGBrgb(84, 46, 125)
HSLhsl(269, 46%, 34%)
HSVhsv(269, 63%, 49%)
CMYKcmyk(32.8%, 63.2%, 0%, 51%)
CIE-LABlab(27.63, 34.09, -38.44)
CIE-LCHlch(27.63, 51.38, 311.56°)
OKLaboklab(39.07% 0.0708 -0.1089)
OKLCHoklch(39.07% 0.13 303)
XYZxyz(8.3340, 5.3195, 19.9858)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E7D #577D2E
analogous
#2E2F7D #542E7D #7B2E7D
triadic
#542E7D #7D542E #2E7D54
tetradic
#542E7D #7D2E2F #577D2E #2E7D7B
square
#542E7D #7D2E2F #577D2E #2E7D7B
split-complementary
#542E7D #7D7B2E #2F7D2E
monochromatic
#180D24 #361E50 #542E7D #723EAA #9161C5

Accessibility & contrast

On white

10.18
#542E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#542E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E7D
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E7D#FFFFFF#000000##FFFFFF
##542E7D1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014080
Deuteranopia (green-blind)
#18417B
Tritanopia (blue-blind)
#4C3E51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542e7d;
/* rgb */ color: rgb(84, 46, 125);
/* oklch */ color: oklch(39.1% 0.130 303.0);
Tailwind
colors: {
  custom: {
    50: '#8769a3',
    500: '#542e7d',
    950: '#000000',
  },
}
SCSS
$custom: #542e7d;
$custom-light: #8769a3;
$custom-dark: #000000;
JSON
{
  "hex": "#542e7d",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 268.861,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39071,
    "c": 0.12987,
    "h": 303
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#542E7D
secondary
#85AB5B
accent
#D65296
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #542E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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