#5D2AB7#5D2AB7

#5D2AB7 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.204 H 292.5°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5D2AB7
RGBrgb(93, 42, 183)
HSLhsl(262, 63%, 44%)
HSVhsv(262, 77%, 72%)
CMYKcmyk(49.2%, 77%, 0%, 28.2%)
CIE-LABlab(32.70, 53.41, -65.54)
CIE-LCHlch(32.70, 84.55, 309.18°)
OKLaboklab(44.4% 0.0778 -0.1881)
OKLCHoklch(44.4% 0.204 292.5)
XYZxyz(13.8870, 7.4015, 45.4875)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2AB7 #84B72A
analogous
#2A3EB7 #5D2AB7 #A42AB7
triadic
#5D2AB7 #B75D2A #2AB75D
tetradic
#5D2AB7 #B72A3E #84B72A #2AB7A4
square
#5D2AB7 #B72A3E #84B72A #2AB7A4
split-complementary
#5D2AB7 #B7A42A #3EB72A
monochromatic
#2A1353 #441F85 #5D2AB7 #7C49D5 #A07BE1

Accessibility & contrast

On white

8.47
#5D2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5D2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2AB7
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2AB7#FFFFFF#000000##FFFFFF
##5D2AB71.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#40516F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5d2ab7;
/* rgb */ color: rgb(93, 42, 183);
/* oklch */ color: oklch(44.4% 0.204 292.5);
Tailwind
colors: {
  custom: {
    50: '#946ace',
    500: '#5d2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ab7;
$custom-light: #946ace;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ab7",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 261.702,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44403,
    "c": 0.2036,
    "h": 292.5
  },
  "luminance": 0.07402
}

Semantic roles & 50–950 ramp

primary
#5D2AB7
secondary
#AAC974
accent
#E642AB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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