#5D2396#5D2396

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

Color values

HEX#5D2396
RGBrgb(93, 35, 150)
HSLhsl(270, 62%, 36%)
HSVhsv(270, 77%, 59%)
CMYKcmyk(38%, 76.7%, 0%, 41.2%)
CIE-LABlab(28.72, 48.04, -52.15)
CIE-LCHlch(28.72, 70.91, 312.65°)
OKLaboklab(40.72% 0.0926 -0.1488)
OKLCHoklch(40.72% 0.175 301.9)
XYZxyz(10.6189, 5.7312, 29.3950)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2396 #5C9623
analogous
#242396 #5D2396 #962396
triadic
#5D2396 #965D23 #23965D
tetradic
#5D2396 #962423 #5C9623 #239696
square
#5D2396 #962423 #5C9623 #239696
split-complementary
#5D2396 #969623 #239624
monochromatic
#1F0C33 #3E1764 #5D2396 #7C2FC8 #9A5BD9

Accessibility & contrast

On white

9.78
#5D2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2396
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2396#FFFFFF#000000##FFFFFF
##5D23961.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#51415B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2396;
/* rgb */ color: rgb(93, 35, 150);
/* oklch */ color: oklch(40.7% 0.175 301.9);
Tailwind
colors: {
  custom: {
    50: '#9064b6',
    500: '#5d2396',
    950: '#000000',
  },
}
SCSS
$custom: #5d2396;
$custom-light: #9064b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2396",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 270.261,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40721,
    "c": 0.17524,
    "h": 301.9
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#5D2396
secondary
#8ABD58
accent
#E54393
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2396

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

Preview Lab → · Contrast checker → · Palette generator →

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