#5D2F9D#5D2F9D

#5D2F9D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.169 H 298.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#5D2F9D
RGBrgb(93, 47, 157)
HSLhsl(265, 54%, 40%)
HSVhsv(265, 70%, 62%)
CMYKcmyk(40.8%, 70.1%, 0%, 38.4%)
CIE-LABlab(31.33, 44.10, -52.18)
CIE-LCHlch(31.33, 68.31, 310.20°)
OKLaboklab(42.75% 0.0792 -0.1489)
OKLCHoklch(42.75% 0.169 298)
XYZxyz(11.6150, 6.7943, 32.5912)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F9D #6F9D2F
analogous
#2F389D #5D2F9D #942F9D
triadic
#5D2F9D #9D5D2F #2F9D5D
tetradic
#5D2F9D #9D2F38 #6F9D2F #2F9D94
square
#5D2F9D #9D2F38 #6F9D2F #2F9D94
split-complementary
#5D2F9D #9D942F #389D2F
monochromatic
#25133F #41216E #5D2F9D #7A43C7 #9B72D5

Accessibility & contrast

On white

8.90
#5D2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5D2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2F9D
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F9D#FFFFFF#000000##FFFFFF
##5D2F9D1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#4D4A62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2f9d;
/* rgb */ color: rgb(93, 47, 157);
/* oklch */ color: oklch(42.7% 0.169 298.0);
Tailwind
colors: {
  custom: {
    50: '#906bbb',
    500: '#5d2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f9d;
$custom-light: #906bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f9d",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 265.091,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.42749,
    "c": 0.16869,
    "h": 298
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#5D2F9D
secondary
#9BBC6B
accent
#DD4BA0
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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