#5D2FA2#5D2FA2

#5D2FA2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.174 H 296.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5D2FA2
RGBrgb(93, 47, 162)
HSLhsl(264, 55%, 41%)
HSVhsv(264, 71%, 64%)
CMYKcmyk(42.6%, 71%, 0%, 36.5%)
CIE-LABlab(31.74, 45.43, -54.55)
CIE-LCHlch(31.74, 70.99, 309.79°)
OKLaboklab(43.16% 0.0783 -0.1559)
OKLCHoklch(43.16% 0.175 296.7)
XYZxyz(12.0506, 6.9686, 34.8856)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FA2 #74A22F
analogous
#2F3AA2 #5D2FA2 #962FA2
triadic
#5D2FA2 #A25D2F #2FA25D
tetradic
#5D2FA2 #A22F3A #74A22F #2FA296
square
#5D2FA2 #A22F3A #74A22F #2FA296
split-complementary
#5D2FA2 #A2962F #3AA22F
monochromatic
#271343 #422173 #5D2FA2 #7A45C9 #9C75D7

Accessibility & contrast

On white

8.77
#5D2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5D2FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2FA2
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FA2#FFFFFF#000000##FFFFFF
##5D2FA21.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#4B4B65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2fa2;
/* rgb */ color: rgb(93, 47, 162);
/* oklch */ color: oklch(43.2% 0.174 296.7);
Tailwind
colors: {
  custom: {
    50: '#916bbe',
    500: '#5d2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fa2;
$custom-light: #916bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fa2",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 264,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43161,
    "c": 0.1745,
    "h": 296.7
  },
  "luminance": 0.06969
}

Semantic roles & 50–950 ramp

primary
#5D2FA2
secondary
#9EBF6E
accent
#DE49A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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