#5D2B97#5D2B97

#5D2B97 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.167 H 300.4°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5D2B97
RGBrgb(93, 43, 151)
HSLhsl(268, 56%, 38%)
HSVhsv(268, 72%, 59%)
CMYKcmyk(38.4%, 71.5%, 0%, 40.8%)
CIE-LABlab(30.13, 44.55, -50.47)
CIE-LCHlch(30.13, 67.32, 311.43°)
OKLaboklab(41.74% 0.0845 -0.1439)
OKLCHoklch(41.74% 0.167 300.4)
XYZxyz(10.9626, 6.2892, 29.9085)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2B97 #65972B
analogous
#2B2F97 #5D2B97 #932B97
triadic
#5D2B97 #975D2B #2B975D
tetradic
#5D2B97 #972B2F #65972B #2B9793
square
#5D2B97 #972B2F #65972B #2B9793
split-complementary
#5D2B97 #97932B #2F972B
monochromatic
#221038 #401D67 #5D2B97 #7A39C7 #9A68D4

Accessibility & contrast

On white

9.30
#5D2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5D2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2B97
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2B97#FFFFFF#000000##FFFFFF
##5D2B971.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2b97;
/* rgb */ color: rgb(93, 43, 151);
/* oklch */ color: oklch(41.7% 0.167 300.4);
Tailwind
colors: {
  custom: {
    50: '#9069b6',
    500: '#5d2b97',
    950: '#000000',
  },
}
SCSS
$custom: #5d2b97;
$custom-light: #9069b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2b97",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 267.778,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41742,
    "c": 0.16687,
    "h": 300.4
  },
  "luminance": 0.06289
}

Semantic roles & 50–950 ramp

primary
#5D2B97
secondary
#92BB63
accent
#DF4999
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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