#5D308F#5D308F

#5D308F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.151 H 302.0°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#5D308F
RGBrgb(93, 48, 143)
HSLhsl(268, 50%, 37%)
HSVhsv(268, 66%, 56%)
CMYKcmyk(35%, 66.4%, 0%, 43.9%)
CIE-LABlab(30.46, 39.87, -45.03)
CIE-LCHlch(30.46, 60.15, 311.52°)
OKLaboklab(41.79% 0.0799 -0.1279)
OKLCHoklch(41.79% 0.151 302)
XYZxyz(10.5279, 6.4242, 26.6666)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D308F #628F30
analogous
#30338F #5D308F #8C308F
triadic
#5D308F #8F5D30 #308F5D
tetradic
#5D308F #8F3033 #628F30 #308F8C
square
#5D308F #8F3033 #628F30 #308F8C
split-complementary
#5D308F #8F8C30 #338F30
monochromatic
#211133 #3F2161 #5D308F #7B3FBD #9A6CCE

Accessibility & contrast

On white

9.19
#5D308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5D308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D308F
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D308F#FFFFFF#000000##FFFFFF
##5D308F1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#0A478D
Tritanopia (blue-blind)
#53455B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d308f;
/* rgb */ color: rgb(93, 48, 143);
/* oklch */ color: oklch(41.8% 0.151 302.0);
Tailwind
colors: {
  custom: {
    50: '#8f6bb0',
    500: '#5d308f',
    950: '#000000',
  },
}
SCSS
$custom: #5d308f;
$custom-light: #8f6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d308f",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 268.421,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41785,
    "c": 0.15086,
    "h": 302
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#5D308F
secondary
#8FB566
accent
#D94F98
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D308F

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

Preview Lab → · Contrast checker → · Palette generator →

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