#542E6D#542E6D

#542E6D is a dark, moderate violet. Relative luminance 0.049; OKLCH L 38.0% C 0.110 H 310.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#542E6D
RGBrgb(84, 46, 109)
HSLhsl(276, 41%, 30%)
HSVhsv(276, 58%, 43%)
CMYKcmyk(22.9%, 57.8%, 0%, 57.3%)
CIE-LABlab(26.57, 29.93, -29.96)
CIE-LCHlch(26.57, 42.35, 314.97°)
OKLaboklab(37.96% 0.0706 -0.084)
OKLCHoklch(37.96% 0.11 310)
XYZxyz(7.3929, 4.9431, 15.0297)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E6D #476D2E
analogous
#342E6D #542E6D #6D2E66
triadic
#542E6D #6D542E #2E6D54
tetradic
#542E6D #6D342E #476D2E #2E666D
square
#542E6D #6D342E #476D2E #2E666D
split-complementary
#542E6D #666D2E #2E6D34
monochromatic
#120A17 #331C42 #542E6D #754098 #945BBA

Accessibility & contrast

On white

10.56
#542E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#542E6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E6D
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E6D#FFFFFF#000000##FFFFFF
##542E6D1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3D6F
Deuteranopia (green-blind)
#283F6B
Tritanopia (blue-blind)
#513949
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #542e6d;
/* rgb */ color: rgb(84, 46, 109);
/* oklch */ color: oklch(38.0% 0.110 310.0);
Tailwind
colors: {
  custom: {
    50: '#866897',
    500: '#542e6d',
    950: '#000000',
  },
}
SCSS
$custom: #542e6d;
$custom-light: #866897;
$custom-dark: #000000;
JSON
{
  "hex": "#542e6d",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 109
  },
  "hsl": {
    "h": 276.19,
    "s": 40.645,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37961,
    "c": 0.10975,
    "h": 310
  },
  "luminance": 0.04943
}

Semantic roles & 50–950 ramp

primary
#542E6D
secondary
#749F58
accent
#D05787
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #542E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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