#5D1888#5D1888

#5D1888 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.172 H 307.8°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5D1888
RGBrgb(93, 24, 136)
HSLhsl(277, 70%, 31%)
HSVhsv(277, 82%, 53%)
CMYKcmyk(31.6%, 82.4%, 0%, 46.7%)
CIE-LABlab(26.03, 49.09, -47.86)
CIE-LCHlch(26.03, 68.56, 315.72°)
OKLaboklab(38.47% 0.1057 -0.1361)
OKLCHoklch(38.47% 0.172 307.8)
XYZxyz(9.2838, 4.7581, 23.7171)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1888 #438818
analogous
#251888 #5D1888 #88187B
triadic
#5D1888 #885D18 #18885D
tetradic
#5D1888 #882518 #438818 #187B88
square
#5D1888 #882518 #438818 #187B88
split-complementary
#5D1888 #7B8818 #188825
monochromatic
#160620 #390F54 #5D1888 #8121BC #A03EDD

Accessibility & contrast

On white

10.76
#5D1888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D1888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1888
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1888#FFFFFF#000000##FFFFFF
##5D18881.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#563651
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1888;
/* rgb */ color: rgb(93, 24, 136);
/* oklch */ color: oklch(38.5% 0.172 307.8);
Tailwind
colors: {
  custom: {
    50: '#905fac',
    500: '#5d1888',
    950: '#000000',
  },
}
SCSS
$custom: #5d1888;
$custom-light: #905fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1888",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 276.964,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38472,
    "c": 0.17235,
    "h": 307.8
  },
  "luminance": 0.04758
}

Semantic roles & 50–950 ramp

primary
#5D1888
secondary
#70BC40
accent
#ED3B7F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1888

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

Preview Lab → · Contrast checker → · Palette generator →

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