#5D2397#5D2397

#5D2397 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.176 H 301.6°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5D2397
RGBrgb(93, 35, 151)
HSLhsl(270, 62%, 36%)
HSVhsv(270, 77%, 59%)
CMYKcmyk(38.4%, 76.8%, 0%, 40.8%)
CIE-LABlab(28.81, 48.29, -52.63)
CIE-LCHlch(28.81, 71.42, 312.54°)
OKLaboklab(40.81% 0.0923 -0.1502)
OKLCHoklch(40.81% 0.176 301.6)
XYZxyz(10.6998, 5.7635, 29.8209)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2397 #5D9723
analogous
#232397 #5D2397 #972397
triadic
#5D2397 #975D23 #23975D
tetradic
#5D2397 #972323 #5D9723 #239797
square
#5D2397 #972323 #5D9723 #239797
split-complementary
#5D2397 #979723 #239723
monochromatic
#200C34 #3E1765 #5D2397 #7C2FC9 #9A5BD9

Accessibility & contrast

On white

9.75
#5D2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2397
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2397#FFFFFF#000000##FFFFFF
##5D23971.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2397;
/* rgb */ color: rgb(93, 35, 151);
/* oklch */ color: oklch(40.8% 0.176 301.6);
Tailwind
colors: {
  custom: {
    50: '#9164b6',
    500: '#5d2397',
    950: '#000000',
  },
}
SCSS
$custom: #5d2397;
$custom-light: #9164b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2397",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 270,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40806,
    "c": 0.1763,
    "h": 301.6
  },
  "luminance": 0.05764
}

Semantic roles & 50–950 ramp

primary
#5D2397
secondary
#8BBE58
accent
#E54294
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2397

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

Preview Lab → · Contrast checker → · Palette generator →

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