#5D2D7B#5D2D7B

#5D2D7B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.132 H 310.1°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5D2D7B
RGBrgb(93, 45, 123)
HSLhsl(277, 46%, 33%)
HSVhsv(277, 63%, 48%)
CMYKcmyk(24.4%, 63.4%, 0%, 51.8%)
CIE-LABlab(28.47, 36.44, -35.77)
CIE-LCHlch(28.47, 51.06, 315.54°)
OKLaboklab(39.9% 0.0849 -0.1007)
OKLCHoklch(39.9% 0.132 310.1)
XYZxyz(9.0271, 5.6342, 19.3470)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D7B #4B7B2D
analogous
#362D7B #5D2D7B #7B2D72
triadic
#5D2D7B #7B5D2D #2D7B5D
tetradic
#5D2D7B #7B362D #4B7B2D #2D727B
square
#5D2D7B #7B362D #4B7B2D #2D727B
split-complementary
#5D2D7B #727B2D #2D7B36
monochromatic
#190C21 #3B1D4E #5D2D7B #7F3DA8 #9D5EC4

Accessibility & contrast

On white

9.87
#5D2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5D2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2D7B
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D7B#FFFFFF#000000##FFFFFF
##5D2D7B1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C417D
Deuteranopia (green-blind)
#244479
Tritanopia (blue-blind)
#593C4F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2d7b;
/* rgb */ color: rgb(93, 45, 123);
/* oklch */ color: oklch(39.9% 0.132 310.1);
Tailwind
colors: {
  custom: {
    50: '#8e69a2',
    500: '#5d2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d7b;
$custom-light: #8e69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d7b",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 276.923,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39902,
    "c": 0.13172,
    "h": 310.1
  },
  "luminance": 0.05634
}

Semantic roles & 50–950 ramp

primary
#5D2D7B
secondary
#79AB59
accent
#D65285
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5D2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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