#5D2FA7#5D2FA7

#5D2FA7 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.180 H 295.4°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5D2FA7
RGBrgb(93, 47, 167)
HSLhsl(263, 56%, 42%)
HSVhsv(263, 72%, 65%)
CMYKcmyk(44.3%, 71.9%, 0%, 34.5%)
CIE-LABlab(32.15, 46.77, -56.90)
CIE-LCHlch(32.15, 73.65, 309.42°)
OKLaboklab(43.58% 0.0774 -0.1628)
OKLCHoklch(43.58% 0.18 295.4)
XYZxyz(12.5039, 7.1499, 37.2730)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2FA7 #79A72F
analogous
#2F3DA7 #5D2FA7 #992FA7
triadic
#5D2FA7 #A75D2F #2FA75D
tetradic
#5D2FA7 #A72F3D #79A72F #2FA799
square
#5D2FA7 #A72F3D #79A72F #2FA799
split-complementary
#5D2FA7 #A7992F #3DA72F
monochromatic
#281447 #422277 #5D2FA7 #7A48CB #9D78D9

Accessibility & contrast

On white

8.64
#5D2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5D2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2FA7
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2FA7#FFFFFF#000000##FFFFFF
##5D2FA71.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#004AA5
Tritanopia (blue-blind)
#494D68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d2fa7;
/* rgb */ color: rgb(93, 47, 167);
/* oklch */ color: oklch(43.6% 0.180 295.4);
Tailwind
colors: {
  custom: {
    50: '#926cc2',
    500: '#5d2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #5d2fa7;
$custom-light: #926cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2fa7",
  "rgb": {
    "r": 93,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 263,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4358,
    "c": 0.18027,
    "h": 295.4
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#5D2FA7
secondary
#A2C171
accent
#DF48A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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