#5D2C95#5D2C95

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

Color values

HEX#5D2C95
RGBrgb(93, 44, 149)
HSLhsl(268, 54%, 38%)
HSVhsv(268, 70%, 58%)
CMYKcmyk(37.6%, 70.5%, 0%, 41.6%)
CIE-LABlab(30.15, 43.53, -49.21)
CIE-LCHlch(30.15, 65.70, 311.49°)
OKLaboklab(41.71% 0.0837 -0.1402)
OKLCHoklch(41.71% 0.163 300.8)
XYZxyz(10.8384, 6.2984, 29.0726)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2C95 #64952C
analogous
#2C2F95 #5D2C95 #912C95
triadic
#5D2C95 #955D2C #2C955D
tetradic
#5D2C95 #952C2F #64952C #2C9591
square
#5D2C95 #952C2F #64952C #2C9591
split-complementary
#5D2C95 #95912C #2F952C
monochromatic
#221037 #401E66 #5D2C95 #7A3AC4 #9A69D3

Accessibility & contrast

On white

9.29
#5D2C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2C95
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2C95#FFFFFF#000000##FFFFFF
##5D2C951.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#51455D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2c95;
/* rgb */ color: rgb(93, 44, 149);
/* oklch */ color: oklch(41.7% 0.163 300.8);
Tailwind
colors: {
  custom: {
    50: '#9069b5',
    500: '#5d2c95',
    950: '#000000',
  },
}
SCSS
$custom: #5d2c95;
$custom-light: #9069b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2c95",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 268,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41709,
    "c": 0.16331,
    "h": 300.8
  },
  "luminance": 0.06298
}

Semantic roles & 50–950 ramp

primary
#5D2C95
secondary
#91B964
accent
#DE4A99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2C95

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

Preview Lab → · Contrast checker → · Palette generator →

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