#5D2A9E#5D2A9E

#5D2A9E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.176 H 298.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5D2A9E
RGBrgb(93, 42, 158)
HSLhsl(266, 58%, 39%)
HSVhsv(266, 73%, 62%)
CMYKcmyk(41.1%, 73.4%, 0%, 38%)
CIE-LABlab(30.52, 46.85, -54.10)
CIE-LCHlch(30.52, 71.57, 310.89°)
OKLaboklab(42.2% 0.0841 -0.1546)
OKLCHoklch(42.2% 0.176 298.5)
XYZxyz(11.5121, 6.4515, 32.9799)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2A9E #6B9E2A
analogous
#2A319E #5D2A9E #972A9E
triadic
#5D2A9E #9E5D2A #2A9E5D
tetradic
#5D2A9E #9E2A31 #6B9E2A #2A9E97
square
#5D2A9E #9E2A31 #6B9E2A #2A9E97
split-complementary
#5D2A9E #9E972A #319E2A
monochromatic
#24103D #411D6E #5D2A9E #7A3ACB #9B6BD8

Accessibility & contrast

On white

9.17
#5D2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5D2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2A9E
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2A9E#FFFFFF#000000##FFFFFF
##5D2A9E1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#4D4761
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d2a9e;
/* rgb */ color: rgb(93, 42, 158);
/* oklch */ color: oklch(42.2% 0.176 298.5);
Tailwind
colors: {
  custom: {
    50: '#9168bc',
    500: '#5d2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #5d2a9e;
$custom-light: #9168bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2a9e",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 266.379,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42199,
    "c": 0.17598,
    "h": 298.5
  },
  "luminance": 0.06452
}

Semantic roles & 50–950 ramp

primary
#5D2A9E
secondary
#97BE66
accent
#E1479D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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