#5D309E#5D309E

#5D309E is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.169 H 297.6°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5D309E
RGBrgb(93, 48, 158)
HSLhsl(265, 53%, 40%)
HSVhsv(265, 70%, 62%)
CMYKcmyk(41.1%, 69.6%, 0%, 38%)
CIE-LABlab(31.60, 43.84, -52.35)
CIE-LCHlch(31.60, 68.28, 309.95°)
OKLaboklab(42.96% 0.078 -0.1495)
OKLCHoklch(42.96% 0.169 297.6)
XYZxyz(11.7411, 6.9095, 33.0562)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D309E #719E30
analogous
#303A9E #5D309E #94309E
triadic
#5D309E #9E5D30 #309E5D
tetradic
#5D309E #9E303A #719E30 #309E94
square
#5D309E #9E303A #719E30 #309E94
split-complementary
#5D309E #9E9430 #3A9E30
monochromatic
#261340 #41226F #5D309E #7A45C6 #9B74D5

Accessibility & contrast

On white

8.82
#5D309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5D309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D309E
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D309E#FFFFFF#000000##FFFFFF
##5D309E1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#4D4A63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d309e;
/* rgb */ color: rgb(93, 48, 158);
/* oklch */ color: oklch(43.0% 0.169 297.6);
Tailwind
colors: {
  custom: {
    50: '#906cbb',
    500: '#5d309e',
    950: '#000000',
  },
}
SCSS
$custom: #5d309e;
$custom-light: #906cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d309e",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 264.545,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42964,
    "c": 0.16858,
    "h": 297.6
  },
  "luminance": 0.0691
}

Semantic roles & 50–950 ramp

primary
#5D309E
secondary
#9CBD6D
accent
#DD4BA1
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D309E

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

Preview Lab → · Contrast checker → · Palette generator →

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