#542E68#542E68

#542E68 is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.6% C 0.103 H 312.7°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#542E68
RGBrgb(84, 46, 104)
HSLhsl(279, 39%, 29%)
HSVhsv(279, 56%, 41%)
CMYKcmyk(19.2%, 55.8%, 0%, 59.2%)
CIE-LABlab(26.27, 28.69, -27.22)
CIE-LCHlch(26.27, 39.55, 316.50°)
OKLaboklab(37.64% 0.0702 -0.0761)
OKLCHoklch(37.64% 0.103 312.7)
XYZxyz(7.1314, 4.8385, 13.6523)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E68 #42682E
analogous
#372E68 #542E68 #682E5F
triadic
#542E68 #68542E #2E6854
tetradic
#542E68 #68372E #42682E #2E5F68
square
#542E68 #68372E #42682E #2E5F68
split-complementary
#542E68 #5F682E #2E6837
monochromatic
#110915 #321B3E #542E68 #764192 #965AB6

Accessibility & contrast

On white

10.67
#542E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#542E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E68
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E68#FFFFFF#000000##FFFFFF
##542E681.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3C6A
Deuteranopia (green-blind)
#2B3F67
Tritanopia (blue-blind)
#523846
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #542e68;
/* rgb */ color: rgb(84, 46, 104);
/* oklch */ color: oklch(37.6% 0.103 312.7);
Tailwind
colors: {
  custom: {
    50: '#866893',
    500: '#542e68',
    950: '#000000',
  },
}
SCSS
$custom: #542e68;
$custom-light: #866893;
$custom-dark: #000000;
JSON
{
  "hex": "#542e68",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 104
  },
  "hsl": {
    "h": 279.31,
    "s": 38.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3764,
    "c": 0.10348,
    "h": 312.7
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#542E68
secondary
#6F9A58
accent
#CF5982
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #542E68

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

Preview Lab → · Contrast checker → · Palette generator →

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