#5D307C#5D307C

#5D307C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.128 H 309.1°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5D307C
RGBrgb(93, 48, 124)
HSLhsl(276, 44%, 34%)
HSVhsv(276, 61%, 49%)
CMYKcmyk(25%, 61.3%, 0%, 51.4%)
CIE-LABlab(29.15, 35.03, -35.31)
CIE-LCHlch(29.15, 49.74, 314.78°)
OKLaboklab(40.42% 0.0808 -0.0994)
OKLCHoklch(40.42% 0.128 309.1)
XYZxyz(9.2085, 5.8964, 19.7179)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D307C #4F7C30
analogous
#37307C #5D307C #7C3075
triadic
#5D307C #7C5D30 #307C5D
tetradic
#5D307C #7C3730 #4F7C30 #30757C
square
#5D307C #7C3730 #4F7C30 #30757C
split-complementary
#5D307C #757C30 #307C37
monochromatic
#1B0E24 #3C1F50 #5D307C #7E41A8 #9C64C3

Accessibility & contrast

On white

9.64
#5D307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5D307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D307C
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D307C#FFFFFF#000000##FFFFFF
##5D307C1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13437E
Deuteranopia (green-blind)
#26457A
Tritanopia (blue-blind)
#593E51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d307c;
/* rgb */ color: rgb(93, 48, 124);
/* oklch */ color: oklch(40.4% 0.128 309.1);
Tailwind
colors: {
  custom: {
    50: '#8d6ba2',
    500: '#5d307c',
    950: '#000000',
  },
}
SCSS
$custom: #5d307c;
$custom-light: #8d6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d307c",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 275.526,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40418,
    "c": 0.1281,
    "h": 309.1
  },
  "luminance": 0.05896
}

Semantic roles & 50–950 ramp

primary
#5D307C
secondary
#7DAA5E
accent
#D45488
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D307C

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

Preview Lab → · Contrast checker → · Palette generator →

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