#5D307D#5D307D

#5D307D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.129 H 308.7°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5D307D
RGBrgb(93, 48, 125)
HSLhsl(275, 45%, 34%)
HSVhsv(275, 62%, 49%)
CMYKcmyk(25.6%, 61.6%, 0%, 51%)
CIE-LABlab(29.21, 35.28, -35.83)
CIE-LCHlch(29.21, 50.29, 314.55°)
OKLaboklab(40.49% 0.0808 -0.1009)
OKLCHoklch(40.49% 0.129 308.7)
XYZxyz(9.2721, 5.9219, 20.0526)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D307D #507D30
analogous
#37307D #5D307D #7D3077
triadic
#5D307D #7D5D30 #307D5D
tetradic
#5D307D #7D3730 #507D30 #30777D
square
#5D307D #7D3730 #507D30 #30777D
split-complementary
#5D307D #777D30 #307D37
monochromatic
#1B0E25 #3C1F51 #5D307D #7E41A9 #9C64C3

Accessibility & contrast

On white

9.61
#5D307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5D307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D307D
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D307D#FFFFFF#000000##FFFFFF
##5D307D1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11437F
Deuteranopia (green-blind)
#25457B
Tritanopia (blue-blind)
#583F51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d307d;
/* rgb */ color: rgb(93, 48, 125);
/* oklch */ color: oklch(40.5% 0.129 308.7);
Tailwind
colors: {
  custom: {
    50: '#8d6ba3',
    500: '#5d307d',
    950: '#000000',
  },
}
SCSS
$custom: #5d307d;
$custom-light: #8d6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d307d",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 275.065,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40486,
    "c": 0.1293,
    "h": 308.7
  },
  "luminance": 0.05922
}

Semantic roles & 50–950 ramp

primary
#5D307D
secondary
#7EAB5E
accent
#D45489
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D307D

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

Preview Lab → · Contrast checker → · Palette generator →

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