#5D309C#5D309C

#5D309C is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.166 H 298.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5D309C
RGBrgb(93, 48, 156)
HSLhsl(265, 53%, 40%)
HSVhsv(265, 69%, 61%)
CMYKcmyk(40.4%, 69.2%, 0%, 38.8%)
CIE-LABlab(31.44, 43.31, -51.39)
CIE-LCHlch(31.44, 67.21, 310.12°)
OKLaboklab(42.8% 0.0783 -0.1466)
OKLCHoklch(42.8% 0.166 298.1)
XYZxyz(11.5704, 6.8412, 32.1569)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D309C #6F9C30
analogous
#30399C #5D309C #93309C
triadic
#5D309C #9C5D30 #309C5D
tetradic
#5D309C #9C3039 #6F9C30 #309C93
square
#5D309C #9C3039 #6F9C30 #309C93
split-complementary
#5D309C #9C9330 #399C30
monochromatic
#25133E #41226D #5D309C #7A44C5 #9B73D4

Accessibility & contrast

On white

8.87
#5D309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D309C
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D309C#FFFFFF#000000##FFFFFF
##5D309C1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#4E4A62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d309c;
/* rgb */ color: rgb(93, 48, 156);
/* oklch */ color: oklch(42.8% 0.166 298.1);
Tailwind
colors: {
  custom: {
    50: '#906cba',
    500: '#5d309c',
    950: '#000000',
  },
}
SCSS
$custom: #5d309c;
$custom-light: #906cba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d309c",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 265,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.42802,
    "c": 0.16624,
    "h": 298.1
  },
  "luminance": 0.06841
}

Semantic roles & 50–950 ramp

primary
#5D309C
secondary
#9BBC6C
accent
#DC4BA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D309C

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

Preview Lab → · Contrast checker → · Palette generator →

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