#5D2B99#5D2B99

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

Color values

HEX#5D2B99
RGBrgb(93, 43, 153)
HSLhsl(267, 56%, 38%)
HSVhsv(267, 72%, 60%)
CMYKcmyk(39.2%, 71.9%, 0%, 40%)
CIE-LABlab(30.29, 45.06, -51.44)
CIE-LCHlch(30.29, 68.39, 311.22°)
OKLaboklab(41.91% 0.0841 -0.1467)
OKLCHoklch(41.91% 0.169 299.8)
XYZxyz(11.1264, 6.3547, 30.7712)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2B99 #67992B
analogous
#2B3099 #5D2B99 #942B99
triadic
#5D2B99 #995D2B #2B995D
tetradic
#5D2B99 #992B30 #67992B #2B9994
square
#5D2B99 #992B30 #67992B #2B9994
split-complementary
#5D2B99 #99942B #30992B
monochromatic
#231039 #401E69 #5D2B99 #7A3AC8 #9A69D5

Accessibility & contrast

On white

9.25
#5D2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2B99
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2B99#FFFFFF#000000##FFFFFF
##5D2B991.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#4F465F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2b99;
/* rgb */ color: rgb(93, 43, 153);
/* oklch */ color: oklch(41.9% 0.169 299.8);
Tailwind
colors: {
  custom: {
    50: '#9069b8',
    500: '#5d2b99',
    950: '#000000',
  },
}
SCSS
$custom: #5d2b99;
$custom-light: #9069b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2b99",
  "rgb": {
    "r": 93,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 267.273,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41906,
    "c": 0.16914,
    "h": 299.8
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#5D2B99
secondary
#94BC64
accent
#DF489B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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