#5E317E#5E317E

#5E317E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.8% C 0.129 H 308.7°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5E317E
RGBrgb(94, 49, 126)
HSLhsl(275, 44%, 34%)
HSVhsv(275, 61%, 49%)
CMYKcmyk(25.4%, 61.1%, 0%, 50.6%)
CIE-LABlab(29.62, 35.24, -35.80)
CIE-LCHlch(29.62, 50.23, 314.54°)
OKLaboklab(40.83% 0.0808 -0.1008)
OKLCHoklch(40.83% 0.129 308.7)
XYZxyz(9.4796, 6.0828, 20.4093)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E317E #517E31
analogous
#38317E #5E317E #7E3178
triadic
#5E317E #7E5E31 #317E5E
tetradic
#5E317E #7E3831 #517E31 #31787E
square
#5E317E #7E3831 #517E31 #31787E
split-complementary
#5E317E #787E31 #317E38
monochromatic
#1C0F26 #3D2052 #5E317E #7F42AA #9D66C3

Accessibility & contrast

On white

9.47
#5E317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E317E
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E317E#FFFFFF#000000##FFFFFF
##5E317E1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134480
Deuteranopia (green-blind)
#27467C
Tritanopia (blue-blind)
#594052
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e317e;
/* rgb */ color: rgb(94, 49, 126);
/* oklch */ color: oklch(40.8% 0.129 308.7);
Tailwind
colors: {
  custom: {
    50: '#8e6ba4',
    500: '#5e317e',
    950: '#000000',
  },
}
SCSS
$custom: #5e317e;
$custom-light: #8e6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e317e",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 275.065,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40832,
    "c": 0.12924,
    "h": 308.7
  },
  "luminance": 0.06083
}

Semantic roles & 50–950 ramp

primary
#5E317E
secondary
#7FAB60
accent
#D45489
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D070F
muted
#7D7A7F

Preview Lab

Preview with #5E317E

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

Preview Lab → · Contrast checker → · Palette generator →

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