#5D3099#5D3099

#5D3099 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.163 H 298.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5D3099
RGBrgb(93, 48, 153)
HSLhsl(266, 52%, 39%)
HSVhsv(266, 69%, 60%)
CMYKcmyk(39.2%, 68.6%, 0%, 40%)
CIE-LABlab(31.21, 42.51, -49.94)
CIE-LCHlch(31.21, 65.59, 310.40°)
OKLaboklab(42.56% 0.0787 -0.1424)
OKLCHoklch(42.56% 0.163 298.9)
XYZxyz(11.3195, 6.7408, 30.8356)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3099 #6C9930
analogous
#303899 #5D3099 #923099
triadic
#5D3099 #995D30 #30995D
tetradic
#5D3099 #993038 #6C9930 #309992
square
#5D3099 #993038 #6C9930 #309992
split-complementary
#5D3099 #999230 #389930
monochromatic
#24133C #41216A #5D3099 #7A42C4 #9B71D2

Accessibility & contrast

On white

8.94
#5D3099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5D3099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3099
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3099#FFFFFF#000000##FFFFFF
##5D30991.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#4F4960
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d3099;
/* rgb */ color: rgb(93, 48, 153);
/* oklch */ color: oklch(42.6% 0.163 298.9);
Tailwind
colors: {
  custom: {
    50: '#906cb8',
    500: '#5d3099',
    950: '#000000',
  },
}
SCSS
$custom: #5d3099;
$custom-light: #906cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3099",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 153
  },
  "hsl": {
    "h": 265.714,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42562,
    "c": 0.16271,
    "h": 298.9
  },
  "luminance": 0.06741
}

Semantic roles & 50–950 ramp

primary
#5D3099
secondary
#98BA6B
accent
#DC4C9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D3099

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

Preview Lab → · Contrast checker → · Palette generator →

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