#542E80#542E80

#542E80 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.134 H 301.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#542E80
RGBrgb(84, 46, 128)
HSLhsl(268, 47%, 34%)
HSVhsv(268, 64%, 50%)
CMYKcmyk(34.4%, 64.1%, 0%, 49.8%)
CIE-LABlab(27.84, 34.89, -39.99)
CIE-LCHlch(27.84, 53.07, 311.10°)
OKLaboklab(39.29% 0.0706 -0.1134)
OKLCHoklch(39.29% 0.134 301.9)
XYZxyz(8.5285, 5.3973, 21.0104)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E80 #5A802E
analogous
#2E3180 #542E80 #7D2E80
triadic
#542E80 #80542E #2E8054
tetradic
#542E80 #802E31 #5A802E #2E807D
square
#542E80 #802E31 #5A802E #2E807D
split-complementary
#542E80 #807D2E #31802E
monochromatic
#190E26 #361E53 #542E80 #723EAD #9162C7

Accessibility & contrast

On white

10.10
#542E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#542E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E80
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E80#FFFFFF#000000##FFFFFF
##542E801.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004183
Deuteranopia (green-blind)
#14417E
Tritanopia (blue-blind)
#4B3F52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542e80;
/* rgb */ color: rgb(84, 46, 128);
/* oklch */ color: oklch(39.3% 0.134 301.9);
Tailwind
colors: {
  custom: {
    50: '#8869a5',
    500: '#542e80',
    950: '#000000',
  },
}
SCSS
$custom: #542e80;
$custom-light: #8869a5;
$custom-dark: #000000;
JSON
{
  "hex": "#542e80",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 128
  },
  "hsl": {
    "h": 267.805,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39293,
    "c": 0.13363,
    "h": 301.9
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#542E80
secondary
#88AD5D
accent
#D75199
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #542E80

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

Preview Lab → · Contrast checker → · Palette generator →

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