#5D307A#5D307A

#5D307A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.126 H 310.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5D307A
RGBrgb(93, 48, 122)
HSLhsl(276, 44%, 33%)
HSVhsv(276, 61%, 48%)
CMYKcmyk(23.8%, 60.7%, 0%, 52.2%)
CIE-LABlab(29.02, 34.54, -34.25)
CIE-LCHlch(29.02, 48.64, 315.24°)
OKLaboklab(40.28% 0.0808 -0.0963)
OKLCHoklch(40.28% 0.126 310)
XYZxyz(9.0833, 5.8464, 19.0585)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D307A #4D7A30
analogous
#38307A #5D307A #7A3072
triadic
#5D307A #7A5D30 #307A5D
tetradic
#5D307A #7A3830 #4D7A30 #30727A
square
#5D307A #7A3830 #4D7A30 #30727A
split-complementary
#5D307A #727A30 #307A38
monochromatic
#1A0D22 #3C1F4E #5D307A #7E41A6 #9C63C2

Accessibility & contrast

On white

9.68
#5D307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5D307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D307A
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D307A#FFFFFF#000000##FFFFFF
##5D307A1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427C
Deuteranopia (green-blind)
#284578
Tritanopia (blue-blind)
#593E50
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d307a;
/* rgb */ color: rgb(93, 48, 122);
/* oklch */ color: oklch(40.3% 0.126 310.0);
Tailwind
colors: {
  custom: {
    50: '#8d6ba1',
    500: '#5d307a',
    950: '#000000',
  },
}
SCSS
$custom: #5d307a;
$custom-light: #8d6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d307a",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 276.486,
    "s": 43.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40283,
    "c": 0.1257,
    "h": 310
  },
  "luminance": 0.05846
}

Semantic roles & 50–950 ramp

primary
#5D307A
secondary
#7BA95D
accent
#D35586
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5D307A

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

Preview Lab → · Contrast checker → · Palette generator →

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