#5D2AC2#5D2AC2

#5D2AC2 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.216 H 290.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5D2AC2
RGBrgb(93, 42, 194)
HSLhsl(260, 64%, 46%)
HSVhsv(260, 78%, 76%)
CMYKcmyk(52.1%, 78.4%, 0%, 23.9%)
CIE-LABlab(33.73, 56.32, -70.35)
CIE-LCHlch(33.73, 90.12, 308.68°)
OKLaboklab(45.43% 0.0746 -0.2022)
OKLCHoklch(45.43% 0.216 290.2)
XYZxyz(15.0770, 7.8775, 51.7546)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2AC2 #8FC22A
analogous
#2A43C2 #5D2AC2 #A92AC2
triadic
#5D2AC2 #C25D2A #2AC25D
tetradic
#5D2AC2 #C22A43 #8FC22A #2AC2A9
square
#5D2AC2 #C22A43 #8FC22A #2AC2A9
split-complementary
#5D2AC2 #C2A92A #43C22A
monochromatic
#2D145D #451F90 #5D2AC2 #7E50D9 #A382E4

Accessibility & contrast

On white

8.15
#5D2AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5D2AC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2AC2
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2AC2#FFFFFF#000000##FFFFFF
##5D2AC21.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#004CBF
Tritanopia (blue-blind)
#385676
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d2ac2;
/* rgb */ color: rgb(93, 42, 194);
/* oklch */ color: oklch(45.4% 0.216 290.2);
Tailwind
colors: {
  custom: {
    50: '#956ad6',
    500: '#5d2ac2',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ac2;
$custom-light: #956ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ac2",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 194
  },
  "hsl": {
    "h": 260.132,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45426,
    "c": 0.21555,
    "h": 290.2
  },
  "luminance": 0.07878
}

Semantic roles & 50–950 ramp

primary
#5D2AC2
secondary
#B1CD7B
accent
#E740AF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0F0714
muted
#7E7A83

Preview Lab

Preview with #5D2AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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