#542E7A#542E7A

#542E7A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.126 H 304.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#542E7A
RGBrgb(84, 46, 122)
HSLhsl(270, 45%, 33%)
HSVhsv(270, 62%, 48%)
CMYKcmyk(31.1%, 62.3%, 0%, 52.2%)
CIE-LABlab(27.42, 33.29, -36.89)
CIE-LCHlch(27.42, 49.69, 312.07°)
OKLaboklab(38.85% 0.0708 -0.1043)
OKLCHoklch(38.85% 0.126 304.2)
XYZxyz(8.1452, 5.2440, 18.9917)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E7A #547A2E
analogous
#2E2E7A #542E7A #7A2E7A
triadic
#542E7A #7A542E #2E7A54
tetradic
#542E7A #7A2E2E #547A2E #2E7A7A
square
#542E7A #7A2E2E #547A2E #2E7A7A
split-complementary
#542E7A #7A7A2E #2E7A2E
monochromatic
#170C21 #351D4E #542E7A #733FA6 #9160C3

Accessibility & contrast

On white

10.25
#542E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#542E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E7A
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E7A#FFFFFF#000000##FFFFFF
##542E7A1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08407C
Deuteranopia (green-blind)
#1C4178
Tritanopia (blue-blind)
#4D3D4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542e7a;
/* rgb */ color: rgb(84, 46, 122);
/* oklch */ color: oklch(38.9% 0.126 304.2);
Tailwind
colors: {
  custom: {
    50: '#8769a1',
    500: '#542e7a',
    950: '#000000',
  },
}
SCSS
$custom: #542e7a;
$custom-light: #8769a1;
$custom-dark: #000000;
JSON
{
  "hex": "#542e7a",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 270,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.1261,
    "h": 304.2
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

primary
#542E7A
secondary
#82AA5A
accent
#D55394
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #542E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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