#5D2D7C#5D2D7C

#5D2D7C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.133 H 309.7°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5D2D7C
RGBrgb(93, 45, 124)
HSLhsl(276, 47%, 33%)
HSVhsv(276, 64%, 49%)
CMYKcmyk(25%, 63.7%, 0%, 51.4%)
CIE-LABlab(28.54, 36.69, -36.29)
CIE-LCHlch(28.54, 51.60, 315.31°)
OKLaboklab(39.97% 0.0849 -0.1023)
OKLCHoklch(39.97% 0.133 309.7)
XYZxyz(9.0900, 5.6593, 19.6784)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2D7C #4C7C2D
analogous
#352D7C #5D2D7C #7C2D73
triadic
#5D2D7C #7C5D2D #2D7C5D
tetradic
#5D2D7C #7C352D #4C7C2D #2D737C
square
#5D2D7C #7C352D #4C7C2D #2D737C
split-complementary
#5D2D7C #737C2D #2D7C35
monochromatic
#1A0C22 #3B1D4F #5D2D7C #7F3DA9 #9D5FC5

Accessibility & contrast

On white

9.85
#5D2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2D7C
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2D7C#FFFFFF#000000##FFFFFF
##5D2D7C1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A417E
Deuteranopia (green-blind)
#23447A
Tritanopia (blue-blind)
#593C50
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2d7c;
/* rgb */ color: rgb(93, 45, 124);
/* oklch */ color: oklch(40.0% 0.133 309.7);
Tailwind
colors: {
  custom: {
    50: '#8e69a2',
    500: '#5d2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #5d2d7c;
$custom-light: #8e69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2d7c",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 276.456,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39971,
    "c": 0.13289,
    "h": 309.7
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#5D2D7C
secondary
#7AAB5A
accent
#D65186
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5D2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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