#5D2FA5#5D2FA5

#5D2FA5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.178 H 295.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5D2FA5
RGBrgb(93, 47, 165)
HSLhsl(263, 56%, 42%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(43.6%, 71.5%, 0%, 35.3%)
CIE-LABlab(31.98, 46.23, -55.96)
CIE-LCHlch(31.98, 72.59, 309.56°)
OKLaboklab(43.41% 0.0778 -0.1601)
OKLCHoklch(43.41% 0.178 295.9)
XYZxyz(12.3204, 7.0765, 36.3068)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FA5 #77A52F
analogous
#2F3CA5 #5D2FA5 #982FA5
triadic
#5D2FA5 #A55D2F #2FA55D
tetradic
#5D2FA5 #A52F3C #77A52F #2FA598
square
#5D2FA5 #A52F3C #77A52F #2FA598
split-complementary
#5D2FA5 #A5982F #3CA52F
monochromatic
#271446 #422175 #5D2FA5 #7A47CB #9C76D8

Accessibility & contrast

On white

8.69
#5D2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5D2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2FA5
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FA5#FFFFFF#000000##FFFFFF
##5D2FA51.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#4A4D67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2fa5;
/* rgb */ color: rgb(93, 47, 165);
/* oklch */ color: oklch(43.4% 0.178 295.9);
Tailwind
colors: {
  custom: {
    50: '#916bc1',
    500: '#5d2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fa5;
$custom-light: #916bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fa5",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 263.39,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43412,
    "c": 0.17797,
    "h": 295.9
  },
  "luminance": 0.07077
}

Semantic roles & 50–950 ramp

primary
#5D2FA5
secondary
#A1C070
accent
#DF49A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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