#5D2198#5D2198

#5D2198 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.179 H 301.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5D2198
RGBrgb(93, 33, 152)
HSLhsl(270, 64%, 36%)
HSVhsv(270, 78%, 60%)
CMYKcmyk(38.8%, 78.3%, 0%, 40.4%)
CIE-LABlab(28.59, 49.39, -53.59)
CIE-LCHlch(28.59, 72.88, 312.66°)
OKLaboklab(40.68% 0.0939 -0.153)
OKLCHoklch(40.68% 0.18 301.5)
XYZxyz(10.7242, 5.6818, 30.2314)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2198 #5C9821
analogous
#222198 #5D2198 #982198
triadic
#5D2198 #985D21 #21985D
tetradic
#5D2198 #982221 #5C9821 #219898
square
#5D2198 #982221 #5C9821 #219898
split-complementary
#5D2198 #989821 #219822
monochromatic
#1F0B33 #3E1666 #5D2198 #7C2CCA #9A59DB

Accessibility & contrast

On white

9.83
#5D2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2198
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2198#FFFFFF#000000##FFFFFF
##5D21981.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#50405C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2198;
/* rgb */ color: rgb(93, 33, 152);
/* oklch */ color: oklch(40.7% 0.179 301.5);
Tailwind
colors: {
  custom: {
    50: '#9163b7',
    500: '#5d2198',
    950: '#000000',
  },
}
SCSS
$custom: #5d2198;
$custom-light: #9163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2198",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 270.252,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40683,
    "c": 0.1795,
    "h": 301.5
  },
  "luminance": 0.05682
}

Semantic roles & 50–950 ramp

primary
#5D2198
secondary
#8ABF56
accent
#E74093
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2198

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

Preview Lab → · Contrast checker → · Palette generator →

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