#5E319D#5E319D

#5E319D is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.166 H 298.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5E319D
RGBrgb(94, 49, 157)
HSLhsl(265, 52%, 40%)
HSVhsv(265, 69%, 62%)
CMYKcmyk(40.1%, 68.8%, 0%, 38.4%)
CIE-LABlab(31.83, 43.26, -51.36)
CIE-LCHlch(31.83, 67.15, 310.10°)
OKLaboklab(43.13% 0.0785 -0.1465)
OKLCHoklch(43.13% 0.166 298.2)
XYZxyz(11.7987, 7.0105, 32.6233)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E319D #709D31
analogous
#313A9D #5E319D #94319D
triadic
#5E319D #9D5E31 #319D5E
tetradic
#5E319D #9D313A #709D31 #319D94
square
#5E319D #9D313A #709D31 #319D94
split-complementary
#5E319D #9D9431 #3A9D31
monochromatic
#261440 #42226E #5E319D #7B46C5 #9C75D4

Accessibility & contrast

On white

8.74
#5E319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5E319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E319D
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E319D#FFFFFF#000000##FFFFFF
##5E319D1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#004A9B
Tritanopia (blue-blind)
#4F4B63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e319d;
/* rgb */ color: rgb(94, 49, 157);
/* oklch */ color: oklch(43.1% 0.166 298.2);
Tailwind
colors: {
  custom: {
    50: '#916cbb',
    500: '#5e319d',
    950: '#000000',
  },
}
SCSS
$custom: #5e319d;
$custom-light: #916cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e319d",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 265,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43131,
    "c": 0.16624,
    "h": 298.2
  },
  "luminance": 0.07011
}

Semantic roles & 50–950 ramp

primary
#5E319D
secondary
#9BBC6E
accent
#DC4CA0
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E319D

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

Preview Lab → · Contrast checker → · Palette generator →

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