#5D308D#5D308D

#5D308D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.148 H 302.7°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5D308D
RGBrgb(93, 48, 141)
HSLhsl(269, 49%, 37%)
HSVhsv(269, 66%, 55%)
CMYKcmyk(34%, 66%, 0%, 44.7%)
CIE-LABlab(30.31, 39.35, -44.03)
CIE-LCHlch(30.31, 59.05, 311.79°)
OKLaboklab(41.63% 0.0801 -0.125)
OKLCHoklch(41.63% 0.148 302.7)
XYZxyz(10.3778, 6.3641, 25.8758)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D308D #608D30
analogous
#30328D #5D308D #8B308D
triadic
#5D308D #8D5D30 #308D5D
tetradic
#5D308D #8D3032 #608D30 #308D8B
square
#5D308D #8D3032 #608D30 #308D8B
split-complementary
#5D308D #8D8B30 #328D30
monochromatic
#211132 #3F205F #5D308D #7B40BB #9A6BCD

Accessibility & contrast

On white

9.24
#5D308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5D308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D308D
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D308D#FFFFFF#000000##FFFFFF
##5D308D1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#0F478B
Tritanopia (blue-blind)
#53445A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d308d;
/* rgb */ color: rgb(93, 48, 141);
/* oklch */ color: oklch(41.6% 0.148 302.7);
Tailwind
colors: {
  custom: {
    50: '#8f6baf',
    500: '#5d308d',
    950: '#000000',
  },
}
SCSS
$custom: #5d308d;
$custom-light: #8f6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d308d",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 269.032,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41634,
    "c": 0.14848,
    "h": 302.7
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#5D308D
secondary
#8EB465
accent
#D94F96
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D308D

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

Preview Lab → · Contrast checker → · Palette generator →

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