#5D2188#5D2188

#5D2188 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.163 H 306.8°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5D2188
RGBrgb(93, 33, 136)
HSLhsl(275, 61%, 33%)
HSVhsv(275, 76%, 53%)
CMYKcmyk(31.6%, 75.7%, 0%, 46.7%)
CIE-LABlab(27.28, 45.51, -45.84)
CIE-LCHlch(27.28, 64.60, 314.79°)
OKLaboklab(39.35% 0.0976 -0.1302)
OKLCHoklch(39.35% 0.163 306.8)
XYZxyz(9.5010, 5.1926, 23.7895)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2188 #4C8821
analogous
#292188 #5D2188 #88217F
triadic
#5D2188 #885D21 #21885D
tetradic
#5D2188 #882921 #4C8821 #217F88
square
#5D2188 #882921 #4C8821 #217F88
split-complementary
#5D2188 #7F8821 #218829
monochromatic
#1A0925 #3B1557 #5D2188 #7F2DB9 #9D4FD4

Accessibility & contrast

On white

10.30
#5D2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5D2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2188
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2188#FFFFFF#000000##FFFFFF
##5D21881.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#563A53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d2188;
/* rgb */ color: rgb(93, 33, 136);
/* oklch */ color: oklch(39.3% 0.163 306.8);
Tailwind
colors: {
  custom: {
    50: '#8f63ab',
    500: '#5d2188',
    950: '#000000',
  },
}
SCSS
$custom: #5d2188;
$custom-light: #8f63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2188",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 274.951,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39345,
    "c": 0.16275,
    "h": 306.8
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#5D2188
secondary
#7AB84D
accent
#E44487
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D2188

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

Preview Lab → · Contrast checker → · Palette generator →

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