#5D1785#5D1785

#5D1785 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.170 H 309.0°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#5D1785
RGBrgb(93, 23, 133)
HSLhsl(278, 71%, 31%)
HSVhsv(278, 83%, 52%)
CMYKcmyk(30.1%, 82.7%, 0%, 47.8%)
CIE-LABlab(25.66, 48.76, -46.59)
CIE-LCHlch(25.66, 67.44, 316.30°)
OKLaboklab(38.14% 0.1073 -0.1324)
OKLCHoklch(38.14% 0.17 309)
XYZxyz(9.0534, 4.6336, 22.6032)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1785 #3F8517
analogous
#261785 #5D1785 #851776
triadic
#5D1785 #855D17 #17855D
tetradic
#5D1785 #852617 #3F8517 #177685
square
#5D1785 #852617 #3F8517 #177685
split-complementary
#5D1785 #768517 #178526
monochromatic
#14051D #390E51 #5D1785 #8120B9 #A13ADD

Accessibility & contrast

On white

10.90
#5D1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1785
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1785#FFFFFF#000000##FFFFFF
##5D17851.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#57344F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1785;
/* rgb */ color: rgb(93, 23, 133);
/* oklch */ color: oklch(38.1% 0.170 309.0);
Tailwind
colors: {
  custom: {
    50: '#905ea9',
    500: '#5d1785',
    950: '#000000',
  },
}
SCSS
$custom: #5d1785;
$custom-light: #905ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1785",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 278.182,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38136,
    "c": 0.1704,
    "h": 309
  },
  "luminance": 0.04633
}

Semantic roles & 50–950 ramp

primary
#5D1785
secondary
#6BB93F
accent
#ED3B7C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1785

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

Preview Lab → · Contrast checker → · Palette generator →

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