#5D2C97#5D2C97

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

Color values

HEX#5D2C97
RGBrgb(93, 44, 151)
HSLhsl(267, 55%, 38%)
HSVhsv(267, 71%, 59%)
CMYKcmyk(38.4%, 70.9%, 0%, 40.8%)
CIE-LABlab(30.31, 44.05, -50.18)
CIE-LCHlch(30.31, 66.77, 311.27°)
OKLaboklab(41.87% 0.0834 -0.1431)
OKLCHoklch(41.87% 0.166 300.2)
XYZxyz(10.9994, 6.3628, 29.9208)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2C97 #66972C
analogous
#2C3097 #5D2C97 #922C97
triadic
#5D2C97 #975D2C #2C975D
tetradic
#5D2C97 #972C30 #66972C #2C9792
square
#5D2C97 #972C30 #66972C #2C9792
split-complementary
#5D2C97 #97922C #30972C
monochromatic
#231038 #401E68 #5D2C97 #7A3AC6 #9A6AD4

Accessibility & contrast

On white

9.24
#5D2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2C97
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2C97#FFFFFF#000000##FFFFFF
##5D2C971.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#50465E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2c97;
/* rgb */ color: rgb(93, 44, 151);
/* oklch */ color: oklch(41.9% 0.166 300.2);
Tailwind
colors: {
  custom: {
    50: '#9069b6',
    500: '#5d2c97',
    950: '#000000',
  },
}
SCSS
$custom: #5d2c97;
$custom-light: #9069b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2c97",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 267.477,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4187,
    "c": 0.1656,
    "h": 300.2
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#5D2C97
secondary
#93BA65
accent
#DE4A9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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