#5D2FA1#5D2FA1

#5D2FA1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.173 H 296.9°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5D2FA1
RGBrgb(93, 47, 161)
HSLhsl(264, 55%, 41%)
HSVhsv(264, 71%, 63%)
CMYKcmyk(42.2%, 70.8%, 0%, 36.9%)
CIE-LABlab(31.65, 45.16, -54.08)
CIE-LCHlch(31.65, 70.46, 309.87°)
OKLaboklab(43.08% 0.0785 -0.1545)
OKLCHoklch(43.08% 0.173 296.9)
XYZxyz(11.9621, 6.9332, 34.4193)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FA1 #73A12F
analogous
#2F3AA1 #5D2FA1 #962FA1
triadic
#5D2FA1 #A15D2F #2FA15D
tetradic
#5D2FA1 #A12F3A #73A12F #2FA196
square
#5D2FA1 #A12F3A #73A12F #2FA196
split-complementary
#5D2FA1 #A1962F #3AA12F
monochromatic
#261342 #422172 #5D2FA1 #7A45C9 #9C74D6

Accessibility & contrast

On white

8.80
#5D2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2FA1
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FA1#FFFFFF#000000##FFFFFF
##5D2FA11.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4C4B64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2fa1;
/* rgb */ color: rgb(93, 47, 161);
/* oklch */ color: oklch(43.1% 0.173 296.9);
Tailwind
colors: {
  custom: {
    50: '#916bbe',
    500: '#5d2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fa1;
$custom-light: #916bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fa1",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 264.211,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43078,
    "c": 0.17334,
    "h": 296.9
  },
  "luminance": 0.06933
}

Semantic roles & 50–950 ramp

primary
#5D2FA1
secondary
#9EBE6E
accent
#DE4AA2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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