#5D1783#5D1783

#5D1783 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.168 H 309.8°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5D1783
RGBrgb(93, 23, 131)
HSLhsl(279, 70%, 30%)
HSVhsv(279, 82%, 51%)
CMYKcmyk(29%, 82.4%, 0%, 48.6%)
CIE-LABlab(25.50, 48.31, -45.60)
CIE-LCHlch(25.50, 66.43, 316.66°)
OKLaboklab(37.97% 0.1078 -0.1295)
OKLCHoklch(37.97% 0.168 309.8)
XYZxyz(8.9165, 4.5788, 21.8824)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1783 #3D8317
analogous
#271783 #5D1783 #831773
triadic
#5D1783 #835D17 #17835D
tetradic
#5D1783 #832717 #3D8317 #177383
square
#5D1783 #832717 #3D8317 #177383
split-complementary
#5D1783 #738317 #178327
monochromatic
#13051B #380E4F #5D1783 #8220B7 #A238DC

Accessibility & contrast

On white

10.96
#5D1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1783
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1783#FFFFFF#000000##FFFFFF
##5D17831.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#57334E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1783;
/* rgb */ color: rgb(93, 23, 131);
/* oklch */ color: oklch(38.0% 0.168 309.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ea8',
    500: '#5d1783',
    950: '#000000',
  },
}
SCSS
$custom: #5d1783;
$custom-light: #8f5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1783",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 278.889,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3797,
    "c": 0.16849,
    "h": 309.8
  },
  "luminance": 0.04579
}

Semantic roles & 50–950 ramp

primary
#5D1783
secondary
#69B73F
accent
#ED3B7A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1783

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

Preview Lab → · Contrast checker → · Palette generator →

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