#5D2D9C#5D2D9C

#5D2D9C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.170 H 298.6°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5D2D9C
RGBrgb(93, 45, 156)
HSLhsl(266, 55%, 39%)
HSVhsv(266, 71%, 61%)
CMYKcmyk(40.4%, 71.2%, 0%, 38.8%)
CIE-LABlab(30.89, 44.85, -52.29)
CIE-LCHlch(30.89, 68.89, 310.62°)
OKLaboklab(42.41% 0.0815 -0.1493)
OKLCHoklch(42.41% 0.17 298.6)
XYZxyz(11.4518, 6.6041, 32.1174)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D9C #6C9C2D
analogous
#2D359C #5D2D9C #952D9C
triadic
#5D2D9C #9C5D2D #2D9C5D
tetradic
#5D2D9C #9C2D35 #6C9C2D #2D9C95
square
#5D2D9C #9C2D35 #6C9C2D #2D9C95
split-complementary
#5D2D9C #9C952D #359C2D
monochromatic
#24123D #411F6D #5D2D9C #7A3FC8 #9B6ED5

Accessibility & contrast

On white

9.05
#5D2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5D2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2D9C
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D9C#FFFFFF#000000##FFFFFF
##5D2D9C1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#4E4861
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2d9c;
/* rgb */ color: rgb(93, 45, 156);
/* oklch */ color: oklch(42.4% 0.170 298.6);
Tailwind
colors: {
  custom: {
    50: '#906aba',
    500: '#5d2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d9c;
$custom-light: #906aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d9c",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 265.946,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42406,
    "c": 0.17007,
    "h": 298.6
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

primary
#5D2D9C
secondary
#98BC68
accent
#DF499E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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