#5D2D95#5D2D95

#5D2D95 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.162 H 300.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5D2D95
RGBrgb(93, 45, 149)
HSLhsl(268, 54%, 38%)
HSVhsv(268, 70%, 58%)
CMYKcmyk(37.6%, 69.8%, 0%, 41.6%)
CIE-LABlab(30.34, 43.02, -48.91)
CIE-LCHlch(30.34, 65.14, 311.33°)
OKLaboklab(41.84% 0.0826 -0.1393)
OKLCHoklch(41.84% 0.162 300.7)
XYZxyz(10.8761, 6.3738, 29.0852)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D95 #65952D
analogous
#2D3195 #5D2D95 #912D95
triadic
#5D2D95 #955D2D #2D955D
tetradic
#5D2D95 #952D31 #65952D #2D9591
square
#5D2D95 #952D31 #65952D #2D9591
split-complementary
#5D2D95 #95912D #31952D
monochromatic
#221137 #401F66 #5D2D95 #7A3BC4 #9A6AD2

Accessibility & contrast

On white

9.23
#5D2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2D95
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D95#FFFFFF#000000##FFFFFF
##5D2D951.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2d95;
/* rgb */ color: rgb(93, 45, 149);
/* oklch */ color: oklch(41.8% 0.162 300.7);
Tailwind
colors: {
  custom: {
    50: '#906ab5',
    500: '#5d2d95',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d95;
$custom-light: #906ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d95",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 267.692,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4184,
    "c": 0.16201,
    "h": 300.7
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#5D2D95
secondary
#92B965
accent
#DD4B9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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