#542E6E#542E6E

#542E6E is a dark, moderate violet. Relative luminance 0.050; OKLCH L 38.0% C 0.111 H 309.5°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#542E6E
RGBrgb(84, 46, 110)
HSLhsl(276, 41%, 31%)
HSVhsv(276, 58%, 43%)
CMYKcmyk(23.6%, 58.2%, 0%, 56.9%)
CIE-LABlab(26.63, 30.19, -30.50)
CIE-LCHlch(26.63, 42.92, 314.70°)
OKLaboklab(38.03% 0.0706 -0.0856)
OKLCHoklch(38.03% 0.111 309.5)
XYZxyz(7.4471, 4.9647, 15.3148)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E6E #486E2E
analogous
#342E6E #542E6E #6E2E68
triadic
#542E6E #6E542E #2E6E54
tetradic
#542E6E #6E342E #486E2E #2E686E
square
#542E6E #6E342E #486E2E #2E686E
split-complementary
#542E6E #686E2E #2E6E34
monochromatic
#120A18 #331C43 #542E6E #754099 #945CBB

Accessibility & contrast

On white

10.54
#542E6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542E6E
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E6E#FFFFFF#000000##FFFFFF
##542E6E1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3D70
Deuteranopia (green-blind)
#27406C
Tritanopia (blue-blind)
#513949
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #542e6e;
/* rgb */ color: rgb(84, 46, 110);
/* oklch */ color: oklch(38.0% 0.111 309.5);
Tailwind
colors: {
  custom: {
    50: '#866898',
    500: '#542e6e',
    950: '#000000',
  },
}
SCSS
$custom: #542e6e;
$custom-light: #866898;
$custom-dark: #000000;
JSON
{
  "hex": "#542e6e",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 110
  },
  "hsl": {
    "h": 275.625,
    "s": 41.026,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38027,
    "c": 0.11101,
    "h": 309.5
  },
  "luminance": 0.04965
}

Semantic roles & 50–950 ramp

primary
#542E6E
secondary
#759F58
accent
#D15788
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #542E6E

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

Preview Lab → · Contrast checker → · Palette generator →

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