#5D307E#5D307E

#5D307E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.131 H 308.3°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5D307E
RGBrgb(93, 48, 126)
HSLhsl(275, 45%, 34%)
HSVhsv(275, 62%, 49%)
CMYKcmyk(26.2%, 61.9%, 0%, 50.6%)
CIE-LABlab(29.28, 35.53, -36.36)
CIE-LCHlch(29.28, 50.83, 314.34°)
OKLaboklab(40.55% 0.0808 -0.1025)
OKLCHoklch(40.55% 0.131 308.3)
XYZxyz(9.3363, 5.9476, 20.3908)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D307E #517E30
analogous
#36307E #5D307E #7E3078
triadic
#5D307E #7E5D30 #307E5D
tetradic
#5D307E #7E3630 #517E30 #30787E
square
#5D307E #7E3630 #517E30 #30787E
split-complementary
#5D307E #787E30 #307E36
monochromatic
#1C0E25 #3C1F52 #5D307E #7E41AA #9C64C4

Accessibility & contrast

On white

9.59
#5D307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5D307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D307E
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D307E#FFFFFF#000000##FFFFFF
##5D307E1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104380
Deuteranopia (green-blind)
#25467C
Tritanopia (blue-blind)
#583F52
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d307e;
/* rgb */ color: rgb(93, 48, 126);
/* oklch */ color: oklch(40.6% 0.131 308.3);
Tailwind
colors: {
  custom: {
    50: '#8e6ba4',
    500: '#5d307e',
    950: '#000000',
  },
}
SCSS
$custom: #5d307e;
$custom-light: #8e6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d307e",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 274.615,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40554,
    "c": 0.1305,
    "h": 308.3
  },
  "luminance": 0.05947
}

Semantic roles & 50–950 ramp

primary
#5D307E
secondary
#7FAB5F
accent
#D5538A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D307E

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

Preview Lab → · Contrast checker → · Palette generator →

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