#5D1885#5D1885

#5D1885 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.169 H 308.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5D1885
RGBrgb(93, 24, 133)
HSLhsl(278, 69%, 31%)
HSVhsv(278, 82%, 52%)
CMYKcmyk(30.1%, 82%, 0%, 47.8%)
CIE-LABlab(25.79, 48.41, -46.39)
CIE-LCHlch(25.79, 67.05, 316.22°)
OKLaboklab(38.22% 0.1065 -0.1318)
OKLCHoklch(38.22% 0.169 308.9)
XYZxyz(9.0736, 4.6740, 22.6099)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1885 #408518
analogous
#271885 #5D1885 #851876
triadic
#5D1885 #855D18 #18855D
tetradic
#5D1885 #852718 #408518 #187685
square
#5D1885 #852718 #408518 #187685
split-complementary
#5D1885 #768518 #188527
monochromatic
#14051D #390F51 #5D1885 #8121B9 #A13CDC

Accessibility & contrast

On white

10.85
#5D1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1885
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1885#FFFFFF#000000##FFFFFF
##5D18851.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#57344F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1885;
/* rgb */ color: rgb(93, 24, 133);
/* oklch */ color: oklch(38.2% 0.169 308.9);
Tailwind
colors: {
  custom: {
    50: '#905ea9',
    500: '#5d1885',
    950: '#000000',
  },
}
SCSS
$custom: #5d1885;
$custom-light: #905ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1885",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 277.982,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38221,
    "c": 0.16945,
    "h": 308.9
  },
  "luminance": 0.04674
}

Semantic roles & 50–950 ramp

primary
#5D1885
secondary
#6CB940
accent
#EC3C7C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1885

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

Preview Lab → · Contrast checker → · Palette generator →

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