#5D1F7D#5D1F7D

#5D1F7D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.154 H 311.3°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5D1F7D
RGBrgb(93, 31, 125)
HSLhsl(280, 60%, 31%)
HSVhsv(280, 75%, 49%)
CMYKcmyk(25.6%, 75.2%, 0%, 51%)
CIE-LABlab(26.12, 43.82, -40.81)
CIE-LCHlch(26.12, 59.88, 317.04°)
OKLaboklab(38.26% 0.1016 -0.1154)
OKLCHoklch(38.26% 0.154 311.3)
XYZxyz(8.7052, 4.7880, 19.8637)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F7D #3F7D1F
analogous
#2E1F7D #5D1F7D #7D1F6E
triadic
#5D1F7D #7D5D1F #1F7D5D
tetradic
#5D1F7D #7D2E1F #3F7D1F #1F6E7D
square
#5D1F7D #7D2E1F #3F7D1F #1F6E7D
split-complementary
#5D1F7D #6E7D1F #1F7D2E
monochromatic
#14071B #39134C #5D1F7D #812BAE #A145D1

Accessibility & contrast

On white

10.73
#5D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F7D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F7D#FFFFFF#000000##FFFFFF
##5D1F7D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#103F7B
Tritanopia (blue-blind)
#59344C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1f7d;
/* rgb */ color: rgb(93, 31, 125);
/* oklch */ color: oklch(38.3% 0.154 311.3);
Tailwind
colors: {
  custom: {
    50: '#8f61a3',
    500: '#5d1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f7d;
$custom-light: #8f61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f7d",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 279.574,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3826,
    "c": 0.15376,
    "h": 311.3
  },
  "luminance": 0.04788
}

Semantic roles & 50–950 ramp

primary
#5D1F7D
secondary
#6BB048
accent
#E3447B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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