#5D1D7E#5D1D7E

#5D1D7E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.157 H 311.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5D1D7E
RGBrgb(93, 29, 126)
HSLhsl(280, 63%, 30%)
HSVhsv(280, 77%, 49%)
CMYKcmyk(26.2%, 77%, 0%, 50.6%)
CIE-LABlab(25.90, 44.90, -41.80)
CIE-LCHlch(25.90, 61.34, 317.05°)
OKLaboklab(38.13% 0.1035 -0.1183)
OKLCHoklch(38.13% 0.157 311.2)
XYZxyz(8.7187, 4.7125, 20.1849)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D7E #3E7E1D
analogous
#2D1D7E #5D1D7E #7E1D6E
triadic
#5D1D7E #7E5D1D #1D7E5D
tetradic
#5D1D7E #7E2D1D #3E7E1D #1D6E7E
square
#5D1D7E #7E2D1D #3E7E1D #1D6E7E
split-complementary
#5D1D7E #6E7E1D #1D7E2D
monochromatic
#14061B #38124C #5D1D7E #8228B0 #A242D3

Accessibility & contrast

On white

10.81
#5D1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1D7E
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D7E#FFFFFF#000000##FFFFFF
##5D1D7E1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#0B3E7C
Tritanopia (blue-blind)
#59334C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1d7e;
/* rgb */ color: rgb(93, 29, 126);
/* oklch */ color: oklch(38.1% 0.157 311.2);
Tailwind
colors: {
  custom: {
    50: '#8f60a4',
    500: '#5d1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d7e;
$custom-light: #8f60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d7e",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 279.588,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38126,
    "c": 0.15719,
    "h": 311.2
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#5D1D7E
secondary
#6AB145
accent
#E6427A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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