#5E319A#5E319A

#5E319A is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.163 H 299.0°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5E319A
RGBrgb(94, 49, 154)
HSLhsl(266, 52%, 40%)
HSVhsv(266, 68%, 60%)
CMYKcmyk(39%, 68.2%, 0%, 39.6%)
CIE-LABlab(31.60, 42.46, -49.91)
CIE-LCHlch(31.60, 65.53, 310.38°)
OKLaboklab(42.89% 0.0789 -0.1423)
OKLCHoklch(42.89% 0.163 299)
XYZxyz(11.5457, 6.9093, 31.2909)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E319A #6D9A31
analogous
#31399A #5E319A #92319A
triadic
#5E319A #9A5E31 #319A5E
tetradic
#5E319A #9A3139 #6D9A31 #319A92
square
#5E319A #9A3139 #6D9A31 #319A92
split-complementary
#5E319A #9A9231 #399A31
monochromatic
#25133D #42226C #5E319A #7B45C4 #9C73D2

Accessibility & contrast

On white

8.82
#5E319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5E319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E319A
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E319A#FFFFFF#000000##FFFFFF
##5E319A1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#504961
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e319a;
/* rgb */ color: rgb(94, 49, 154);
/* oklch */ color: oklch(42.9% 0.163 299.0);
Tailwind
colors: {
  custom: {
    50: '#916cb8',
    500: '#5e319a',
    950: '#000000',
  },
}
SCSS
$custom: #5e319a;
$custom-light: #916cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e319a",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 265.714,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42893,
    "c": 0.1627,
    "h": 299
  },
  "luminance": 0.06909
}

Semantic roles & 50–950 ramp

primary
#5E319A
secondary
#99BA6C
accent
#DB4D9E
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E319A

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

Preview Lab → · Contrast checker → · Palette generator →

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