#5E398E#5E398E

#5E398E is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.2% C 0.136 H 300.9°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5E398E
RGBrgb(94, 57, 142)
HSLhsl(266, 43%, 39%)
HSVhsv(266, 60%, 56%)
CMYKcmyk(33.8%, 59.9%, 0%, 44.3%)
CIE-LABlab(32.39, 34.80, -41.30)
CIE-LCHlch(32.39, 54.00, 310.12°)
OKLaboklab(43.19% 0.0701 -0.117)
OKLCHoklch(43.19% 0.136 300.9)
XYZxyz(10.9605, 7.2589, 26.4096)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E398E #698E39
analogous
#393E8E #5E398E #89398E
triadic
#5E398E #8E5E39 #398E5E
tetradic
#5E398E #8E393E #698E39 #398E89
square
#5E398E #8E393E #698E39 #398E89
split-complementary
#5E398E #8E8939 #3E8E39
monochromatic
#241637 #412762 #5E398E #7B4DB7 #9B78C9

Accessibility & contrast

On white

8.57
#5E398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5E398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E398E
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E398E#FFFFFF#000000##FFFFFF
##5E398E1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C91
Deuteranopia (green-blind)
#204C8C
Tritanopia (blue-blind)
#544A5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e398e;
/* rgb */ color: rgb(94, 57, 142);
/* oklch */ color: oklch(43.2% 0.136 300.9);
Tailwind
colors: {
  custom: {
    50: '#8f71b0',
    500: '#5e398e',
    950: '#000000',
  },
}
SCSS
$custom: #5e398e;
$custom-light: #8f71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e398e",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 266.118,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43192,
    "c": 0.13635,
    "h": 300.9
  },
  "luminance": 0.07259
}

Semantic roles & 50–950 ramp

primary
#5E398E
secondary
#96B271
accent
#D2559C
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #5E398E

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

Preview Lab → · Contrast checker → · Palette generator →

#5E398E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva