#5D2F9F#5D2F9F

#5D2F9F is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.171 H 297.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5D2F9F
RGBrgb(93, 47, 159)
HSLhsl(265, 54%, 40%)
HSVhsv(265, 70%, 62%)
CMYKcmyk(41.5%, 70.4%, 0%, 37.6%)
CIE-LABlab(31.49, 44.63, -53.13)
CIE-LCHlch(31.49, 69.39, 310.03°)
OKLaboklab(42.91% 0.0789 -0.1517)
OKLCHoklch(42.91% 0.171 297.5)
XYZxyz(11.7871, 6.8632, 33.4979)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F9F #719F2F
analogous
#2F399F #5D2F9F #952F9F
triadic
#5D2F9F #9F5D2F #2F9F5D
tetradic
#5D2F9F #9F2F39 #719F2F #2F9F95
square
#5D2F9F #9F2F39 #719F2F #2F9F95
split-complementary
#5D2F9F #9F952F #399F2F
monochromatic
#261341 #412170 #5D2F9F #7A44C8 #9B73D6

Accessibility & contrast

On white

8.85
#5D2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F9F
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F9F#FFFFFF#000000##FFFFFF
##5D2F9F1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#4D4A63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2f9f;
/* rgb */ color: rgb(93, 47, 159);
/* oklch */ color: oklch(42.9% 0.171 297.5);
Tailwind
colors: {
  custom: {
    50: '#916bbc',
    500: '#5d2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f9f;
$custom-light: #916bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f9f",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 264.643,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42913,
    "c": 0.17102,
    "h": 297.5
  },
  "luminance": 0.06863
}

Semantic roles & 50–950 ramp

primary
#5D2F9F
secondary
#9CBD6D
accent
#DE4AA1
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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