#5D306E#5D306E

#5D306E is a dark, moderate purple. Relative luminance 0.056; OKLCH L 39.5% C 0.111 H 316.0°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5D306E
RGBrgb(93, 48, 110)
HSLhsl(284, 39%, 31%)
HSVhsv(284, 56%, 43%)
CMYKcmyk(15.5%, 56.4%, 0%, 56.9%)
CIE-LABlab(28.29, 31.67, -27.80)
CIE-LCHlch(28.29, 42.14, 318.73°)
OKLaboklab(39.51% 0.0801 -0.0775)
OKLCHoklch(39.51% 0.111 316)
XYZxyz(8.3852, 5.5671, 15.3817)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D306E #416E30
analogous
#3E306E #5D306E #6E3060
triadic
#5D306E #6E5D30 #306E5D
tetradic
#5D306E #6E3E30 #416E30 #30606E
square
#5D306E #6E3E30 #416E30 #30606E
split-complementary
#5D306E #606E30 #306E3E
monochromatic
#150B19 #391D43 #5D306E #814399 #A15FB9

Accessibility & contrast

On white

9.94
#5D306E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D306E
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D306E#FFFFFF#000000##FFFFFF
##5D306E1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224070
Deuteranopia (green-blind)
#30446C
Tritanopia (blue-blind)
#5C3A4A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d306e;
/* rgb */ color: rgb(93, 48, 110);
/* oklch */ color: oklch(39.5% 0.111 316.0);
Tailwind
colors: {
  custom: {
    50: '#8d6a98',
    500: '#5d306e',
    950: '#000000',
  },
}
SCSS
$custom: #5d306e;
$custom-light: #8d6a98;
$custom-dark: #000000;
JSON
{
  "hex": "#5d306e",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 283.548,
    "s": 39.241,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39513,
    "c": 0.11143,
    "h": 316
  },
  "luminance": 0.05567
}

Semantic roles & 50–950 ramp

primary
#5D306E
secondary
#6D9F5B
accent
#CF5979
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5D306E

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

Preview Lab → · Contrast checker → · Palette generator →

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