#5D309F#5D309F

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

Color values

HEX#5D309F
RGBrgb(93, 48, 159)
HSLhsl(264, 54%, 41%)
HSVhsv(264, 70%, 62%)
CMYKcmyk(41.5%, 69.8%, 0%, 37.6%)
CIE-LABlab(31.68, 44.11, -52.83)
CIE-LCHlch(31.68, 68.82, 309.86°)
OKLaboklab(43.05% 0.0778 -0.1509)
OKLCHoklch(43.05% 0.17 297.3)
XYZxyz(11.8275, 6.9441, 33.5114)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D309F #729F30
analogous
#303B9F #5D309F #94309F
triadic
#5D309F #9F5D30 #309F5D
tetradic
#5D309F #9F303B #729F30 #309F94
square
#5D309F #9F303B #729F30 #309F94
split-complementary
#5D309F #9F9430 #3B9F30
monochromatic
#261441 #422270 #5D309F #7A45C7 #9C74D5

Accessibility & contrast

On white

8.79
#5D309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5D309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D309F
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D309F#FFFFFF#000000##FFFFFF
##5D309F1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#4C4B64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d309f;
/* rgb */ color: rgb(93, 48, 159);
/* oklch */ color: oklch(43.0% 0.170 297.3);
Tailwind
colors: {
  custom: {
    50: '#916cbc',
    500: '#5d309f',
    950: '#000000',
  },
}
SCSS
$custom: #5d309f;
$custom-light: #916cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d309f",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 264.324,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43045,
    "c": 0.16976,
    "h": 297.3
  },
  "luminance": 0.06944
}

Semantic roles & 50–950 ramp

primary
#5D309F
secondary
#9DBD6E
accent
#DD4BA2
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D309F

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

Preview Lab → · Contrast checker → · Palette generator →

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