#5D2C96#5D2C96

#5D2C96 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.164 H 300.5°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5D2C96
RGBrgb(93, 44, 150)
HSLhsl(268, 55%, 38%)
HSVhsv(268, 71%, 59%)
CMYKcmyk(38%, 70.7%, 0%, 41.2%)
CIE-LABlab(30.23, 43.79, -49.70)
CIE-LCHlch(30.23, 66.24, 311.38°)
OKLaboklab(41.79% 0.0836 -0.1416)
OKLCHoklch(41.79% 0.164 300.5)
XYZxyz(10.9186, 6.3304, 29.4949)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2C96 #65962C
analogous
#2C3096 #5D2C96 #922C96
triadic
#5D2C96 #965D2C #2C965D
tetradic
#5D2C96 #962C30 #65962C #2C9692
square
#5D2C96 #962C30 #65962C #2C9692
split-complementary
#5D2C96 #96922C #30962C
monochromatic
#221037 #401E67 #5D2C96 #7A3AC5 #9A69D3

Accessibility & contrast

On white

9.27
#5D2C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5D2C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2C96
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2C96#FFFFFF#000000##FFFFFF
##5D2C961.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#50455D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2c96;
/* rgb */ color: rgb(93, 44, 150);
/* oklch */ color: oklch(41.8% 0.164 300.5);
Tailwind
colors: {
  custom: {
    50: '#9069b6',
    500: '#5d2c96',
    950: '#000000',
  },
}
SCSS
$custom: #5d2c96;
$custom-light: #9069b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2c96",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 267.736,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41789,
    "c": 0.16446,
    "h": 300.5
  },
  "luminance": 0.06331
}

Semantic roles & 50–950 ramp

primary
#5D2C96
secondary
#92BA64
accent
#DE4A99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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