#5D1983#5D1983

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

Color values

HEX#5D1983
RGBrgb(93, 25, 131)
HSLhsl(278, 68%, 31%)
HSVhsv(278, 81%, 51%)
CMYKcmyk(29%, 80.9%, 0%, 48.6%)
CIE-LABlab(25.75, 47.59, -45.20)
CIE-LCHlch(25.75, 65.64, 316.48°)
OKLaboklab(38.14% 0.1062 -0.1283)
OKLCHoklch(38.14% 0.167 309.6)
XYZxyz(8.9577, 4.6613, 21.8962)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1983 #3F8319
analogous
#281983 #5D1983 #831974
triadic
#5D1983 #835D19 #19835D
tetradic
#5D1983 #832819 #3F8319 #197483
square
#5D1983 #832819 #3F8319 #197483
split-complementary
#5D1983 #748319 #198328
monochromatic
#14051C #390F50 #5D1983 #8123B6 #A13DDA

Accessibility & contrast

On white

10.87
#5D1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1983
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1983#FFFFFF#000000##FFFFFF
##5D19831.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#57344E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1983;
/* rgb */ color: rgb(93, 25, 131);
/* oklch */ color: oklch(38.1% 0.167 309.6);
Tailwind
colors: {
  custom: {
    50: '#8f5fa8',
    500: '#5d1983',
    950: '#000000',
  },
}
SCSS
$custom: #5d1983;
$custom-light: #8f5fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1983",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 278.491,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38143,
    "c": 0.16652,
    "h": 309.6
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#5D1983
secondary
#6BB741
accent
#EB3D7B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1983

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

Preview Lab → · Contrast checker → · Palette generator →

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