#5D1883#5D1883

#5D1883 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.168 H 309.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5D1883
RGBrgb(93, 24, 131)
HSLhsl(279, 69%, 30%)
HSVhsv(279, 82%, 51%)
CMYKcmyk(29%, 81.7%, 0%, 48.6%)
CIE-LABlab(25.62, 47.96, -45.40)
CIE-LCHlch(25.62, 66.04, 316.57°)
OKLaboklab(38.06% 0.107 -0.1289)
OKLCHoklch(38.06% 0.168 309.7)
XYZxyz(8.9367, 4.6193, 21.8892)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1883 #3E8318
analogous
#281883 #5D1883 #831873
triadic
#5D1883 #835D18 #18835D
tetradic
#5D1883 #832818 #3E8318 #187383
square
#5D1883 #832818 #3E8318 #187383
split-complementary
#5D1883 #738318 #188328
monochromatic
#14051C #380F4F #5D1883 #8221B7 #A23ADB

Accessibility & contrast

On white

10.92
#5D1883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D1883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1883
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1883#FFFFFF#000000##FFFFFF
##5D18831.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1883;
/* rgb */ color: rgb(93, 24, 131);
/* oklch */ color: oklch(38.1% 0.168 309.7);
Tailwind
colors: {
  custom: {
    50: '#8f5ea8',
    500: '#5d1883',
    950: '#000000',
  },
}
SCSS
$custom: #5d1883;
$custom-light: #8f5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1883",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 278.692,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38055,
    "c": 0.16752,
    "h": 309.7
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#5D1883
secondary
#6AB740
accent
#EC3C7A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1883

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

Preview Lab → · Contrast checker → · Palette generator →

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