#542E7B#542E7B

#542E7B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.9% C 0.127 H 303.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#542E7B
RGBrgb(84, 46, 123)
HSLhsl(270, 46%, 33%)
HSVhsv(270, 63%, 48%)
CMYKcmyk(31.7%, 62.6%, 0%, 51.8%)
CIE-LABlab(27.49, 33.55, -37.41)
CIE-LCHlch(27.49, 50.25, 311.89°)
OKLaboklab(38.93% 0.0708 -0.1058)
OKLCHoklch(38.93% 0.127 303.8)
XYZxyz(8.2075, 5.2689, 19.3197)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E7B #557B2E
analogous
#2E2F7B #542E7B #7A2E7B
triadic
#542E7B #7B542E #2E7B54
tetradic
#542E7B #7B2E2F #557B2E #2E7B7A
square
#542E7B #7B2E2F #557B2E #2E7B7A
split-complementary
#542E7B #7B7A2E #2F7B2E
monochromatic
#170D22 #361D4E #542E7B #723FA8 #9160C3

Accessibility & contrast

On white

10.22
#542E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542E7B
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E7B#FFFFFF#000000##FFFFFF
##542E7B1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06407D
Deuteranopia (green-blind)
#1B4179
Tritanopia (blue-blind)
#4D3E50
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542e7b;
/* rgb */ color: rgb(84, 46, 123);
/* oklch */ color: oklch(38.9% 0.127 303.8);
Tailwind
colors: {
  custom: {
    50: '#8769a2',
    500: '#542e7b',
    950: '#000000',
  },
}
SCSS
$custom: #542e7b;
$custom-light: #8769a2;
$custom-dark: #000000;
JSON
{
  "hex": "#542e7b",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 269.61,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38926,
    "c": 0.12736,
    "h": 303.8
  },
  "luminance": 0.05269
}

Semantic roles & 50–950 ramp

primary
#542E7B
secondary
#83AA5B
accent
#D55395
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #542E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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