#5D306D#5D306D

#5D306D is a dark, moderate purple. Relative luminance 0.055; OKLCH L 39.5% C 0.110 H 316.5°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5D306D
RGBrgb(93, 48, 109)
HSLhsl(284, 39%, 31%)
HSVhsv(284, 56%, 43%)
CMYKcmyk(14.7%, 56%, 0%, 57.3%)
CIE-LABlab(28.24, 31.43, -27.25)
CIE-LCHlch(28.24, 41.60, 319.08°)
OKLaboklab(39.45% 0.08 -0.0759)
OKLCHoklch(39.45% 0.11 316.5)
XYZxyz(8.3311, 5.5455, 15.0966)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D306D #406D30
analogous
#3E306D #5D306D #6D305E
triadic
#5D306D #6D5D30 #306D5D
tetradic
#5D306D #6D3E30 #406D30 #305E6D
square
#5D306D #6D3E30 #406D30 #305E6D
split-complementary
#5D306D #5E6D30 #306D3E
monochromatic
#140B18 #391D43 #5D306D #814397 #A15FB8

Accessibility & contrast

On white

9.96
#5D306D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D306D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D306D
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D306D#FFFFFF#000000##FFFFFF
##5D306D1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23406F
Deuteranopia (green-blind)
#31446B
Tritanopia (blue-blind)
#5C3949
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d306d;
/* rgb */ color: rgb(93, 48, 109);
/* oklch */ color: oklch(39.5% 0.110 316.5);
Tailwind
colors: {
  custom: {
    50: '#8d6a97',
    500: '#5d306d',
    950: '#000000',
  },
}
SCSS
$custom: #5d306d;
$custom-light: #8d6a97;
$custom-dark: #000000;
JSON
{
  "hex": "#5d306d",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 109
  },
  "hsl": {
    "h": 284.262,
    "s": 38.854,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39452,
    "c": 0.11026,
    "h": 316.5
  },
  "luminance": 0.05545
}

Semantic roles & 50–950 ramp

primary
#5D306D
secondary
#6C9E5B
accent
#CF5978
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5D306D

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

Preview Lab → · Contrast checker → · Palette generator →

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