#542E86#542E86

#542E86 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.141 H 299.8°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#542E86
RGBrgb(84, 46, 134)
HSLhsl(266, 49%, 35%)
HSVhsv(266, 66%, 53%)
CMYKcmyk(37.3%, 65.7%, 0%, 47.5%)
CIE-LABlab(28.27, 36.51, -43.04)
CIE-LCHlch(28.27, 56.44, 310.31°)
OKLaboklab(39.75% 0.0702 -0.1224)
OKLCHoklch(39.75% 0.141 299.8)
XYZxyz(8.9352, 5.5600, 23.1521)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E86 #60862E
analogous
#2E3486 #542E86 #802E86
triadic
#542E86 #86542E #2E8654
tetradic
#542E86 #862E34 #60862E #2E8680
square
#542E86 #862E34 #60862E #2E8680
split-complementary
#542E86 #86802E #34862E
monochromatic
#1B0F2B #371E58 #542E86 #713EB4 #9064CA

Accessibility & contrast

On white

9.94
#542E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#542E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E86
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E86#FFFFFF#000000##FFFFFF
##542E861.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#064284
Tritanopia (blue-blind)
#494255
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #542e86;
/* rgb */ color: rgb(84, 46, 134);
/* oklch */ color: oklch(39.7% 0.141 299.8);
Tailwind
colors: {
  custom: {
    50: '#8869aa',
    500: '#542e86',
    950: '#000000',
  },
}
SCSS
$custom: #542e86;
$custom-light: #8869aa;
$custom-dark: #000000;
JSON
{
  "hex": "#542e86",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 265.909,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39747,
    "c": 0.1411,
    "h": 299.8
  },
  "luminance": 0.0556
}

Semantic roles & 50–950 ramp

primary
#542E86
secondary
#8DB15F
accent
#D84F9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542E86

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

Preview Lab → · Contrast checker → · Palette generator →

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