#5D2D9E#5D2D9E

#5D2D9E is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.172 H 298.1°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5D2D9E
RGBrgb(93, 45, 158)
HSLhsl(265, 56%, 40%)
HSVhsv(265, 72%, 62%)
CMYKcmyk(41.1%, 71.5%, 0%, 38%)
CIE-LABlab(31.05, 45.38, -53.25)
CIE-LCHlch(31.05, 69.96, 310.44°)
OKLaboklab(42.57% 0.0811 -0.1521)
OKLCHoklch(42.57% 0.172 298.1)
XYZxyz(11.6226, 6.6724, 33.0167)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D9E #6E9E2D
analogous
#2D359E #5D2D9E #962D9E
triadic
#5D2D9E #9E5D2D #2D9E5D
tetradic
#5D2D9E #9E2D35 #6E9E2D #2D9E96
square
#5D2D9E #9E2D35 #6E9E2D #2D9E96
split-complementary
#5D2D9E #9E962D #359E2D
monochromatic
#25123F #411F6E #5D2D9E #7A40C9 #9B6FD6

Accessibility & contrast

On white

9.00
#5D2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5D2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2D9E
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D9E#FFFFFF#000000##FFFFFF
##5D2D9E1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#4D4962
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2d9e;
/* rgb */ color: rgb(93, 45, 158);
/* oklch */ color: oklch(42.6% 0.172 298.1);
Tailwind
colors: {
  custom: {
    50: '#916abb',
    500: '#5d2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d9e;
$custom-light: #916abb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d9e",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 265.487,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42571,
    "c": 0.17236,
    "h": 298.1
  },
  "luminance": 0.06673
}

Semantic roles & 50–950 ramp

primary
#5D2D9E
secondary
#9ABD69
accent
#DF499F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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