#542E73#542E73

#542E73 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.4% C 0.117 H 307.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#542E73
RGBrgb(84, 46, 115)
HSLhsl(273, 43%, 32%)
HSVhsv(273, 60%, 45%)
CMYKcmyk(27%, 60%, 0%, 54.9%)
CIE-LABlab(26.95, 31.46, -33.19)
CIE-LCHlch(26.95, 45.73, 313.47°)
OKLaboklab(38.36% 0.0708 -0.0935)
OKLCHoklch(38.36% 0.117 307.1)
XYZxyz(7.7270, 5.0767, 16.7892)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E73 #4D732E
analogous
#322E73 #542E73 #732E70
triadic
#542E73 #73542E #2E7354
tetradic
#542E73 #73322E #4D732E #2E7073
square
#542E73 #73322E #4D732E #2E7073
split-complementary
#542E73 #70732E #2E7332
monochromatic
#140B1C #341D47 #542E73 #743F9F #935DBE

Accessibility & contrast

On white

10.42
#542E73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#542E73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E73
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E73#FFFFFF#000000##FFFFFF
##542E731.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143E75
Deuteranopia (green-blind)
#234071
Tritanopia (blue-blind)
#4F3B4C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542e73;
/* rgb */ color: rgb(84, 46, 115);
/* oklch */ color: oklch(38.4% 0.117 307.1);
Tailwind
colors: {
  custom: {
    50: '#86689c',
    500: '#542e73',
    950: '#000000',
  },
}
SCSS
$custom: #542e73;
$custom-light: #86689c;
$custom-dark: #000000;
JSON
{
  "hex": "#542e73",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 115
  },
  "hsl": {
    "h": 273.043,
    "s": 42.857,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38363,
    "c": 0.11729,
    "h": 307.1
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#542E73
secondary
#7BA458
accent
#D3558E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #542E73

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

Preview Lab → · Contrast checker → · Palette generator →

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