#5D2FA4#5D2FA4

#5D2FA4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.177 H 296.2°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5D2FA4
RGBrgb(93, 47, 164)
HSLhsl(264, 55%, 41%)
HSVhsv(264, 71%, 64%)
CMYKcmyk(43.3%, 71.3%, 0%, 35.7%)
CIE-LABlab(31.90, 45.96, -55.49)
CIE-LCHlch(31.90, 72.06, 309.63°)
OKLaboklab(43.33% 0.078 -0.1587)
OKLCHoklch(43.33% 0.177 296.2)
XYZxyz(12.2298, 7.0403, 35.8293)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FA4 #76A42F
analogous
#2F3CA4 #5D2FA4 #982FA4
triadic
#5D2FA4 #A45D2F #2FA45D
tetradic
#5D2FA4 #A42F3C #76A42F #2FA498
square
#5D2FA4 #A42F3C #76A42F #2FA498
split-complementary
#5D2FA4 #A4982F #3CA42F
monochromatic
#271445 #422174 #5D2FA4 #7A46CA #9C76D8

Accessibility & contrast

On white

8.72
#5D2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5D2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2FA4
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FA4#FFFFFF#000000##FFFFFF
##5D2FA41.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#4A4C66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2fa4;
/* rgb */ color: rgb(93, 47, 164);
/* oklch */ color: oklch(43.3% 0.177 296.2);
Tailwind
colors: {
  custom: {
    50: '#916bc0',
    500: '#5d2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fa4;
$custom-light: #916bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fa4",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 263.59,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43328,
    "c": 0.17681,
    "h": 296.2
  },
  "luminance": 0.07041
}

Semantic roles & 50–950 ramp

primary
#5D2FA4
secondary
#A0C06F
accent
#DF49A4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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