#5D309B#5D309B

#5D309B is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.165 H 298.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5D309B
RGBrgb(93, 48, 155)
HSLhsl(265, 53%, 40%)
HSVhsv(265, 69%, 61%)
CMYKcmyk(40%, 69%, 0%, 39.2%)
CIE-LABlab(31.36, 43.04, -50.91)
CIE-LCHlch(31.36, 66.67, 310.21°)
OKLaboklab(42.72% 0.0785 -0.1452)
OKLCHoklch(42.72% 0.165 298.4)
XYZxyz(11.4860, 6.8075, 31.7128)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D309B #6E9B30
analogous
#30389B #5D309B #93309B
triadic
#5D309B #9B5D30 #309B5D
tetradic
#5D309B #9B3038 #6E9B30 #309B93
square
#5D309B #9B3038 #6E9B30 #309B93
split-complementary
#5D309B #9B9330 #389B30
monochromatic
#25133E #41226C #5D309B #7A43C5 #9B72D3

Accessibility & contrast

On white

8.89
#5D309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5D309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D309B
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D309B#FFFFFF#000000##FFFFFF
##5D309B1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#4E4961
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d309b;
/* rgb */ color: rgb(93, 48, 155);
/* oklch */ color: oklch(42.7% 0.165 298.4);
Tailwind
colors: {
  custom: {
    50: '#906cb9',
    500: '#5d309b',
    950: '#000000',
  },
}
SCSS
$custom: #5d309b;
$custom-light: #906cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d309b",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 265.234,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42722,
    "c": 0.16506,
    "h": 298.4
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#5D309B
secondary
#9ABB6C
accent
#DC4C9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D309B

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

Preview Lab → · Contrast checker → · Palette generator →

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