#5D2A91#5D2A91

#5D2A91 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.161 H 302.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5D2A91
RGBrgb(93, 42, 145)
HSLhsl(270, 55%, 37%)
HSVhsv(270, 71%, 57%)
CMYKcmyk(35.9%, 71%, 0%, 43.1%)
CIE-LABlab(29.48, 43.50, -47.84)
CIE-LCHlch(29.48, 64.67, 312.28°)
OKLaboklab(41.13% 0.0865 -0.1362)
OKLCHoklch(41.13% 0.161 302.4)
XYZxyz(10.4518, 6.0274, 27.3953)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2A91 #5E912A
analogous
#2A2B91 #5D2A91 #912A91
triadic
#5D2A91 #915D2A #2A915D
tetradic
#5D2A91 #912A2B #5E912A #2A9191
square
#5D2A91 #912A2B #5E912A #2A9191
split-complementary
#5D2A91 #91912A #2B912A
monochromatic
#200F32 #3F1C62 #5D2A91 #7B38C0 #9A63D2

Accessibility & contrast

On white

9.52
#5D2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2A91
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2A91#FFFFFF#000000##FFFFFF
##5D2A911.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#52425A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d2a91;
/* rgb */ color: rgb(93, 42, 145);
/* oklch */ color: oklch(41.1% 0.161 302.4);
Tailwind
colors: {
  custom: {
    50: '#9068b2',
    500: '#5d2a91',
    950: '#000000',
  },
}
SCSS
$custom: #5d2a91;
$custom-light: #9068b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2a91",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 269.709,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41132,
    "c": 0.16135,
    "h": 302.4
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#5D2A91
secondary
#8CB85F
accent
#DE4995
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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