#5D2D9F#5D2D9F

#5D2D9F is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.174 H 297.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5D2D9F
RGBrgb(93, 45, 159)
HSLhsl(265, 56%, 40%)
HSVhsv(265, 72%, 62%)
CMYKcmyk(41.5%, 71.7%, 0%, 37.6%)
CIE-LABlab(31.13, 45.64, -53.72)
CIE-LCHlch(31.13, 70.49, 310.35°)
OKLaboklab(42.65% 0.0809 -0.1535)
OKLCHoklch(42.65% 0.174 297.8)
XYZxyz(11.7090, 6.7069, 33.4718)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D9F #6F9F2D
analogous
#2D369F #5D2D9F #962D9F
triadic
#5D2D9F #9F5D2D #2D9F5D
tetradic
#5D2D9F #9F2D36 #6F9F2D #2D9F96
square
#5D2D9F #9F2D36 #6F9F2D #2D9F96
split-complementary
#5D2D9F #9F962D #369F2D
monochromatic
#251240 #41206F #5D2D9F #7A40C9 #9B70D6

Accessibility & contrast

On white

8.97
#5D2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5D2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2D9F
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D9F#FFFFFF#000000##FFFFFF
##5D2D9F1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#4D4963
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2d9f;
/* rgb */ color: rgb(93, 45, 159);
/* oklch */ color: oklch(42.7% 0.174 297.8);
Tailwind
colors: {
  custom: {
    50: '#916abc',
    500: '#5d2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d9f;
$custom-light: #916abc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d9f",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 265.263,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.42654,
    "c": 0.17351,
    "h": 297.8
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#5D2D9F
secondary
#9BBE6A
accent
#DF49A0
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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