#5D2F9E#5D2F9E

#5D2F9E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.170 H 297.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5D2F9E
RGBrgb(93, 47, 158)
HSLhsl(265, 54%, 40%)
HSVhsv(265, 70%, 62%)
CMYKcmyk(41.1%, 70.3%, 0%, 38%)
CIE-LABlab(31.41, 44.36, -52.65)
CIE-LCHlch(31.41, 68.85, 310.11°)
OKLaboklab(42.83% 0.079 -0.1504)
OKLCHoklch(42.83% 0.17 297.7)
XYZxyz(11.7007, 6.8286, 33.0427)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2F9E #709E2F
analogous
#2F389E #5D2F9E #942F9E
triadic
#5D2F9E #9E5D2F #2F9E5D
tetradic
#5D2F9E #9E2F38 #709E2F #2F9E94
square
#5D2F9E #9E2F38 #709E2F #2F9E94
split-complementary
#5D2F9E #9E942F #389E2F
monochromatic
#251340 #41216F #5D2F9E #7A43C7 #9B72D5

Accessibility & contrast

On white

8.88
#5D2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2F9E
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2F9E#FFFFFF#000000##FFFFFF
##5D2F9E1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2f9e;
/* rgb */ color: rgb(93, 47, 158);
/* oklch */ color: oklch(42.8% 0.170 297.7);
Tailwind
colors: {
  custom: {
    50: '#916bbb',
    500: '#5d2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2f9e;
$custom-light: #916bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2f9e",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 264.865,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42831,
    "c": 0.16986,
    "h": 297.7
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#5D2F9E
secondary
#9BBD6C
accent
#DE4AA0
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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