#5D1F8E#5D1F8E

#5D1F8E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.171 H 305.0°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5D1F8E
RGBrgb(93, 31, 142)
HSLhsl(274, 64%, 34%)
HSVhsv(274, 78%, 56%)
CMYKcmyk(34.5%, 78.2%, 0%, 44.3%)
CIE-LABlab(27.46, 47.80, -49.27)
CIE-LCHlch(27.46, 68.64, 314.13°)
OKLaboklab(39.63% 0.0982 -0.1403)
OKLCHoklch(39.63% 0.171 305)
XYZxyz(9.8856, 5.2602, 26.0805)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F8E #508E1F
analogous
#261F8E #5D1F8E #8E1F88
triadic
#5D1F8E #8E5D1F #1F8E5D
tetradic
#5D1F8E #8E261F #508E1F #1F888E
square
#5D1F8E #8E261F #508E1F #1F888E
split-complementary
#5D1F8E #888E1F #1F8E26
monochromatic
#1B092A #3C145C #5D1F8E #7E2AC0 #9C4FD9

Accessibility & contrast

On white

10.23
#5D1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F8E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F8E#FFFFFF#000000##FFFFFF
##5D1F8E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#543B56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1f8e;
/* rgb */ color: rgb(93, 31, 142);
/* oklch */ color: oklch(39.6% 0.171 305.0);
Tailwind
colors: {
  custom: {
    50: '#9062b0',
    500: '#5d1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f8e;
$custom-light: #9062b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f8e",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 273.514,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39628,
    "c": 0.17124,
    "h": 305
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

primary
#5D1F8E
secondary
#7EBB4D
accent
#E7418A
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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