#5D2183#5D2183

#5D2183 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.158 H 308.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5D2183
RGBrgb(93, 33, 131)
HSLhsl(277, 60%, 32%)
HSVhsv(277, 75%, 51%)
CMYKcmyk(29%, 74.8%, 0%, 48.6%)
CIE-LABlab(26.89, 44.33, -43.35)
CIE-LCHlch(26.89, 62.00, 315.64°)
OKLaboklab(38.95% 0.0985 -0.1229)
OKLCHoklch(38.95% 0.158 308.7)
XYZxyz(9.1540, 5.0537, 21.9616)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2183 #478321
analogous
#2C2183 #5D2183 #832178
triadic
#5D2183 #835D21 #21835D
tetradic
#5D2183 #832C21 #478321 #217883
square
#5D2183 #832C21 #478321 #217883
split-complementary
#5D2183 #788321 #21832C
monochromatic
#180821 #3A1552 #5D2183 #802DB4 #9E4CD2

Accessibility & contrast

On white

10.44
#5D2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5D2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2183
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2183#FFFFFF#000000##FFFFFF
##5D21831.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#054081
Tritanopia (blue-blind)
#573850
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d2183;
/* rgb */ color: rgb(93, 33, 131);
/* oklch */ color: oklch(38.9% 0.158 308.7);
Tailwind
colors: {
  custom: {
    50: '#8f62a8',
    500: '#5d2183',
    950: '#000000',
  },
}
SCSS
$custom: #5d2183;
$custom-light: #8f62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2183",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 276.735,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38947,
    "c": 0.15751,
    "h": 308.7
  },
  "luminance": 0.05054
}

Semantic roles & 50–950 ramp

primary
#5D2183
secondary
#74B54B
accent
#E34582
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D2183

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

Preview Lab → · Contrast checker → · Palette generator →

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