#5D306A#5D306A

#5D306A is a dark, moderate purple. Relative luminance 0.055; OKLCH L 39.3% C 0.107 H 318.3°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5D306A
RGBrgb(93, 48, 106)
HSLhsl(287, 38%, 30%)
HSVhsv(287, 55%, 42%)
CMYKcmyk(12.3%, 54.7%, 0%, 58.4%)
CIE-LABlab(28.07, 30.74, -25.59)
CIE-LCHlch(28.07, 40.00, 320.23°)
OKLaboklab(39.27% 0.0797 -0.0711)
OKLCHoklch(39.27% 0.107 318.3)
XYZxyz(8.1723, 5.4820, 14.2605)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D306A #3D6A30
analogous
#40306A #5D306A #6A305A
triadic
#5D306A #6A5D30 #306A5D
tetradic
#5D306A #6A4030 #3D6A30 #305A6A
square
#5D306A #6A4030 #3D6A30 #305A6A
split-complementary
#5D306A #5A6A30 #306A40
monochromatic
#130A16 #381D40 #5D306A #824394 #A25EB6

Accessibility & contrast

On white

10.02
#5D306A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D306A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D306A
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D306A#FFFFFF#000000##FFFFFF
##5D306A1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253F6C
Deuteranopia (green-blind)
#334468
Tritanopia (blue-blind)
#5D3848
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d306a;
/* rgb */ color: rgb(93, 48, 106);
/* oklch */ color: oklch(39.3% 0.107 318.3);
Tailwind
colors: {
  custom: {
    50: '#8c6a95',
    500: '#5d306a',
    950: '#000000',
  },
}
SCSS
$custom: #5d306a;
$custom-light: #8c6a95;
$custom-dark: #000000;
JSON
{
  "hex": "#5d306a",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 106
  },
  "hsl": {
    "h": 286.552,
    "s": 37.662,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39271,
    "c": 0.10675,
    "h": 318.3
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#5D306A
secondary
#699B5A
accent
#CE5A74
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5D306A

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

Preview Lab → · Contrast checker → · Palette generator →

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