#5D2D96#5D2D96

#5D2D96 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.163 H 300.4°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5D2D96
RGBrgb(93, 45, 150)
HSLhsl(267, 54%, 38%)
HSVhsv(267, 70%, 59%)
CMYKcmyk(38%, 70%, 0%, 41.2%)
CIE-LABlab(30.41, 43.28, -49.40)
CIE-LCHlch(30.41, 65.68, 311.22°)
OKLaboklab(41.92% 0.0825 -0.1408)
OKLCHoklch(41.92% 0.163 300.4)
XYZxyz(10.9563, 6.4058, 29.5075)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D96 #66962D
analogous
#2D3196 #5D2D96 #912D96
triadic
#5D2D96 #965D2D #2D965D
tetradic
#5D2D96 #962D31 #66962D #2D9691
square
#5D2D96 #962D31 #66962D #2D9691
split-complementary
#5D2D96 #96912D #31962D
monochromatic
#231138 #401F67 #5D2D96 #7A3CC4 #9A6BD3

Accessibility & contrast

On white

9.21
#5D2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5D2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2D96
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D96#FFFFFF#000000##FFFFFF
##5D2D961.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#50465E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2d96;
/* rgb */ color: rgb(93, 45, 150);
/* oklch */ color: oklch(41.9% 0.163 300.4);
Tailwind
colors: {
  custom: {
    50: '#906ab6',
    500: '#5d2d96',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d96;
$custom-light: #906ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d96",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 267.429,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4192,
    "c": 0.16316,
    "h": 300.4
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#5D2D96
secondary
#93B965
accent
#DD4B9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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