#542E93#542E93

#542E93 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.157 H 295.9°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#542E93
RGBrgb(84, 46, 147)
HSLhsl(263, 52%, 38%)
HSVhsv(263, 69%, 58%)
CMYKcmyk(42.9%, 68.7%, 0%, 42.4%)
CIE-LABlab(29.27, 40.09, -49.46)
CIE-LCHlch(29.27, 63.67, 309.03°)
OKLaboklab(40.78% 0.0687 -0.1413)
OKLCHoklch(40.78% 0.157 295.9)
XYZxyz(9.8982, 5.9452, 28.2241)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E93 #6D932E
analogous
#2E3A93 #542E93 #862E93
triadic
#542E93 #93542E #2E9354
tetradic
#542E93 #932E3A #6D932E #2E9386
square
#542E93 #932E3A #6D932E #2E9386
split-complementary
#542E93 #93862E #3A932E
monochromatic
#1F1136 #391F64 #542E93 #6F3DC2 #916BD1

Accessibility & contrast

On white

9.59
#542E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#542E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E93
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E93#FFFFFF#000000##FFFFFF
##542E931.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004696
Deuteranopia (green-blind)
#004491
Tritanopia (blue-blind)
#44465C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #542e93;
/* rgb */ color: rgb(84, 46, 147);
/* oklch */ color: oklch(40.8% 0.157 295.9);
Tailwind
colors: {
  custom: {
    50: '#8a69b3',
    500: '#542e93',
    950: '#000000',
  },
}
SCSS
$custom: #542e93;
$custom-light: #8a69b3;
$custom-dark: #000000;
JSON
{
  "hex": "#542e93",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 147
  },
  "hsl": {
    "h": 262.574,
    "s": 52.332,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40783,
    "c": 0.15709,
    "h": 295.9
  },
  "luminance": 0.05945
}

Semantic roles & 50–950 ramp

primary
#542E93
secondary
#99B865
accent
#DC4CA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542E93

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

Preview Lab → · Contrast checker → · Palette generator →

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