#5D308E#5D308E

#5D308E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.150 H 302.3°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#5D308E
RGBrgb(93, 48, 142)
HSLhsl(269, 49%, 37%)
HSVhsv(269, 66%, 56%)
CMYKcmyk(34.5%, 66.2%, 0%, 44.3%)
CIE-LABlab(30.39, 39.61, -44.53)
CIE-LCHlch(30.39, 59.60, 311.65°)
OKLaboklab(41.71% 0.08 -0.1265)
OKLCHoklch(41.71% 0.15 302.3)
XYZxyz(10.4525, 6.3940, 26.2694)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D308E #618E30
analogous
#30328E #5D308E #8C308E
triadic
#5D308E #8E5D30 #308E5D
tetradic
#5D308E #8E3032 #618E30 #308E8C
square
#5D308E #8E3032 #618E30 #308E8C
split-complementary
#5D308E #8E8C30 #328E30
monochromatic
#211133 #3F2160 #5D308E #7B3FBC #9A6BCD

Accessibility & contrast

On white

9.22
#5D308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D308E
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D308E#FFFFFF#000000##FFFFFF
##5D308E1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#0D478C
Tritanopia (blue-blind)
#53455A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d308e;
/* rgb */ color: rgb(93, 48, 142);
/* oklch */ color: oklch(41.7% 0.150 302.3);
Tailwind
colors: {
  custom: {
    50: '#8f6bb0',
    500: '#5d308e',
    950: '#000000',
  },
}
SCSS
$custom: #5d308e;
$custom-light: #8f6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d308e",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 268.723,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41709,
    "c": 0.14967,
    "h": 302.3
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#5D308E
secondary
#8FB465
accent
#D94F97
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D308E

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

Preview Lab → · Contrast checker → · Palette generator →

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