#542E8B#542E8B

#542E8B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.147 H 298.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#542E8B
RGBrgb(84, 46, 139)
HSLhsl(265, 50%, 36%)
HSVhsv(265, 67%, 55%)
CMYKcmyk(39.6%, 66.9%, 0%, 45.5%)
CIE-LABlab(28.65, 37.88, -45.54)
CIE-LCHlch(28.65, 59.23, 309.75°)
OKLaboklab(40.14% 0.0697 -0.1297)
OKLCHoklch(40.14% 0.147 298.2)
XYZxyz(9.2922, 5.7028, 25.0323)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E8B #658B2E
analogous
#2E378B #542E8B #832E8B
triadic
#542E8B #8B542E #2E8B54
tetradic
#542E8B #8B2E37 #658B2E #2E8B83
square
#542E8B #8B2E37 #658B2E #2E8B83
split-complementary
#542E8B #8B832E #378B2E
monochromatic
#1C102F #381F5D #542E8B #703DB9 #9067CD

Accessibility & contrast

On white

9.81
#542E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#542E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E8B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E8B#FFFFFF#000000##FFFFFF
##542E8B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#474358
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542e8b;
/* rgb */ color: rgb(84, 46, 139);
/* oklch */ color: oklch(40.1% 0.147 298.2);
Tailwind
colors: {
  custom: {
    50: '#8969ae',
    500: '#542e8b',
    950: '#000000',
  },
}
SCSS
$custom: #542e8b;
$custom-light: #8969ae;
$custom-dark: #000000;
JSON
{
  "hex": "#542e8b",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 264.516,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40138,
    "c": 0.14729,
    "h": 298.2
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

primary
#542E8B
secondary
#92B361
accent
#DA4EA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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