#5D2398#5D2398

#5D2398 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.177 H 301.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5D2398
RGBrgb(93, 35, 152)
HSLhsl(270, 63%, 37%)
HSVhsv(270, 77%, 60%)
CMYKcmyk(38.8%, 77%, 0%, 40.4%)
CIE-LABlab(28.89, 48.53, -53.10)
CIE-LCHlch(28.89, 71.94, 312.43°)
OKLaboklab(40.89% 0.0921 -0.1516)
OKLCHoklch(40.89% 0.177 301.3)
XYZxyz(10.7813, 5.7962, 30.2504)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2398 #5E9823
analogous
#232398 #5D2398 #982398
triadic
#5D2398 #985D23 #23985D
tetradic
#5D2398 #982323 #5E9823 #239898
square
#5D2398 #982323 #5E9823 #239898
split-complementary
#5D2398 #989823 #239823
monochromatic
#200C35 #3F1866 #5D2398 #7B2ECA #9A5CD9

Accessibility & contrast

On white

9.73
#5D2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5D2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2398
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2398#FFFFFF#000000##FFFFFF
##5D23981.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2398;
/* rgb */ color: rgb(93, 35, 152);
/* oklch */ color: oklch(40.9% 0.177 301.3);
Tailwind
colors: {
  custom: {
    50: '#9164b7',
    500: '#5d2398',
    950: '#000000',
  },
}
SCSS
$custom: #5d2398;
$custom-light: #9164b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2398",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 269.744,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40892,
    "c": 0.17737,
    "h": 301.3
  },
  "luminance": 0.05796
}

Semantic roles & 50–950 ramp

primary
#5D2398
secondary
#8CBE59
accent
#E64295
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2398

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

Preview Lab → · Contrast checker → · Palette generator →

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