#5D2A97#5D2A97

#5D2A97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.168 H 300.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5D2A97
RGBrgb(93, 42, 151)
HSLhsl(268, 56%, 38%)
HSVhsv(268, 72%, 59%)
CMYKcmyk(38.4%, 72.2%, 0%, 40.8%)
CIE-LABlab(29.95, 45.04, -50.76)
CIE-LCHlch(29.95, 67.86, 311.58°)
OKLaboklab(41.62% 0.0855 -0.1448)
OKLCHoklch(41.62% 0.168 300.6)
XYZxyz(10.9267, 6.2174, 29.8966)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2A97 #64972A
analogous
#2A2E97 #5D2A97 #932A97
triadic
#5D2A97 #975D2A #2A975D
tetradic
#5D2A97 #972A2E #64972A #2A9793
square
#5D2A97 #972A2E #64972A #2A9793
split-complementary
#5D2A97 #97932A #2E972A
monochromatic
#220F37 #401D67 #5D2A97 #7A37C7 #9A67D5

Accessibility & contrast

On white

9.36
#5D2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2A97
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2A97#FFFFFF#000000##FFFFFF
##5D2A971.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#50445D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2a97;
/* rgb */ color: rgb(93, 42, 151);
/* oklch */ color: oklch(41.6% 0.168 300.6);
Tailwind
colors: {
  custom: {
    50: '#9068b6',
    500: '#5d2a97',
    950: '#000000',
  },
}
SCSS
$custom: #5d2a97;
$custom-light: #9068b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2a97",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 268.073,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41617,
    "c": 0.16812,
    "h": 300.6
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#5D2A97
secondary
#91BB62
accent
#E04899
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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