#5D2FA6#5D2FA6

#5D2FA6 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.179 H 295.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#5D2FA6
RGBrgb(93, 47, 166)
HSLhsl(263, 56%, 42%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(44%, 71.7%, 0%, 34.9%)
CIE-LABlab(32.06, 46.50, -56.43)
CIE-LCHlch(32.06, 73.12, 309.49°)
OKLaboklab(43.5% 0.0776 -0.1614)
OKLCHoklch(43.5% 0.179 295.7)
XYZxyz(12.4118, 7.1131, 36.7880)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FA6 #78A62F
analogous
#2F3DA6 #5D2FA6 #992FA6
triadic
#5D2FA6 #A65D2F #2FA65D
tetradic
#5D2FA6 #A62F3D #78A62F #2FA699
square
#5D2FA6 #A62F3D #78A62F #2FA699
split-complementary
#5D2FA6 #A6992F #3DA62F
monochromatic
#281447 #422176 #5D2FA6 #7A47CB #9D77D8

Accessibility & contrast

On white

8.67
#5D2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2FA6
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FA6#FFFFFF#000000##FFFFFF
##5D2FA61.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#494D67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2fa6;
/* rgb */ color: rgb(93, 47, 166);
/* oklch */ color: oklch(43.5% 0.179 295.7);
Tailwind
colors: {
  custom: {
    50: '#916bc1',
    500: '#5d2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fa6;
$custom-light: #916bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fa6",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 263.193,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43496,
    "c": 0.17912,
    "h": 295.7
  },
  "luminance": 0.07113
}

Semantic roles & 50–950 ramp

primary
#5D2FA6
secondary
#A2C170
accent
#DF49A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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