#542E82#542E82

#542E82 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.4% C 0.136 H 301.2°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#542E82
RGBrgb(84, 46, 130)
HSLhsl(267, 48%, 35%)
HSVhsv(267, 65%, 51%)
CMYKcmyk(35.4%, 64.6%, 0%, 49%)
CIE-LABlab(27.98, 35.43, -41.01)
CIE-LCHlch(27.98, 54.20, 310.82°)
OKLaboklab(39.44% 0.0705 -0.1164)
OKLCHoklch(39.44% 0.136 301.2)
XYZxyz(8.6615, 5.4505, 21.7105)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E82 #5C822E
analogous
#2E3282 #542E82 #7E2E82
triadic
#542E82 #82542E #2E8254
tetradic
#542E82 #822E32 #5C822E #2E827E
square
#542E82 #822E32 #5C822E #2E827E
split-complementary
#542E82 #827E2E #32822E
monochromatic
#1A0E28 #371E55 #542E82 #713EAF #9063C8

Accessibility & contrast

On white

10.05
#542E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#542E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E82
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E82#FFFFFF#000000##FFFFFF
##542E821.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#104280
Tritanopia (blue-blind)
#4A4053
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542e82;
/* rgb */ color: rgb(84, 46, 130);
/* oklch */ color: oklch(39.4% 0.136 301.2);
Tailwind
colors: {
  custom: {
    50: '#8869a7',
    500: '#542e82',
    950: '#000000',
  },
}
SCSS
$custom: #542e82;
$custom-light: #8869a7;
$custom-dark: #000000;
JSON
{
  "hex": "#542e82",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 267.143,
    "s": 47.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39442,
    "c": 0.13612,
    "h": 301.2
  },
  "luminance": 0.05451
}

Semantic roles & 50–950 ramp

primary
#542E82
secondary
#8AAE5D
accent
#D7509A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #542E82

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

Preview Lab → · Contrast checker → · Palette generator →

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