#5D3199#5D3199

#5D3199 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.161 H 298.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5D3199
RGBrgb(93, 49, 153)
HSLhsl(265, 51%, 40%)
HSVhsv(265, 68%, 60%)
CMYKcmyk(39.2%, 68%, 0%, 40%)
CIE-LABlab(31.40, 41.98, -49.63)
CIE-LCHlch(31.40, 65.00, 310.23°)
OKLaboklab(42.7% 0.0776 -0.1415)
OKLCHoklch(42.7% 0.161 298.8)
XYZxyz(11.3608, 6.8235, 30.8493)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3199 #6D9931
analogous
#313999 #5D3199 #913199
triadic
#5D3199 #995D31 #31995D
tetradic
#5D3199 #993139 #6D9931 #319991
square
#5D3199 #993139 #6D9931 #319991
split-complementary
#5D3199 #999131 #399931
monochromatic
#25133C #41226B #5D3199 #7A44C3 #9B72D2

Accessibility & contrast

On white

8.88
#5D3199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5D3199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3199
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3199#FFFFFF#000000##FFFFFF
##5D31991.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#4F4961
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d3199;
/* rgb */ color: rgb(93, 49, 153);
/* oklch */ color: oklch(42.7% 0.161 298.8);
Tailwind
colors: {
  custom: {
    50: '#906cb8',
    500: '#5d3199',
    950: '#000000',
  },
}
SCSS
$custom: #5d3199;
$custom-light: #906cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3199",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 265.385,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.427,
    "c": 0.16137,
    "h": 298.8
  },
  "luminance": 0.06824
}

Semantic roles & 50–950 ramp

primary
#5D3199
secondary
#99BA6C
accent
#DB4D9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D3199

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

Preview Lab → · Contrast checker → · Palette generator →

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