#5D1689#5D1689

#5D1689 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.175 H 307.7°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5D1689
RGBrgb(93, 22, 137)
HSLhsl(277, 72%, 31%)
HSVhsv(277, 84%, 54%)
CMYKcmyk(32.1%, 83.9%, 0%, 46.3%)
CIE-LABlab(25.88, 49.99, -48.73)
CIE-LCHlch(25.88, 69.82, 315.73°)
OKLaboklab(38.39% 0.107 -0.1387)
OKLCHoklch(38.39% 0.175 307.7)
XYZxyz(9.3155, 4.7073, 24.0799)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1689 #428916
analogous
#231689 #5D1689 #89167B
triadic
#5D1689 #895D16 #16895D
tetradic
#5D1689 #892316 #428916 #167B89
square
#5D1689 #892316 #428916 #167B89
split-complementary
#5D1689 #7B8916 #168923
monochromatic
#150520 #390E54 #5D1689 #811EBE #A03ADF

Accessibility & contrast

On white

10.82
#5D1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1689
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1689#FFFFFF#000000##FFFFFF
##5D16891.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#563551
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1689;
/* rgb */ color: rgb(93, 22, 137);
/* oklch */ color: oklch(38.4% 0.175 307.7);
Tailwind
colors: {
  custom: {
    50: '#905eac',
    500: '#5d1689',
    950: '#000000',
  },
}
SCSS
$custom: #5d1689;
$custom-light: #905eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1689",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 277.043,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38394,
    "c": 0.17514,
    "h": 307.7
  },
  "luminance": 0.04707
}

Semantic roles & 50–950 ramp

primary
#5D1689
secondary
#6EBD3E
accent
#EF397F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1689

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

Preview Lab → · Contrast checker → · Palette generator →

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