#5D2299#5D2299

#5D2299 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.179 H 301.1°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5D2299
RGBrgb(93, 34, 153)
HSLhsl(270, 64%, 37%)
HSVhsv(270, 78%, 60%)
CMYKcmyk(39.2%, 77.8%, 0%, 40%)
CIE-LABlab(28.83, 49.21, -53.82)
CIE-LCHlch(28.83, 72.93, 312.44°)
OKLaboklab(40.87% 0.0927 -0.1537)
OKLCHoklch(40.87% 0.18 301.1)
XYZxyz(10.8346, 5.7710, 30.6739)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2299 #5E9922
analogous
#222399 #5D2299 #992299
triadic
#5D2299 #995D22 #22995D
tetradic
#5D2299 #992223 #5E9922 #229999
square
#5D2299 #992223 #5E9922 #229999
split-complementary
#5D2299 #999922 #239922
monochromatic
#200C35 #3F1767 #5D2299 #7B2DCB #9A5BDB

Accessibility & contrast

On white

9.75
#5D2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2299
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2299#FFFFFF#000000##FFFFFF
##5D22991.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#50415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2299;
/* rgb */ color: rgb(93, 34, 153);
/* oklch */ color: oklch(40.9% 0.179 301.1);
Tailwind
colors: {
  custom: {
    50: '#9164b8',
    500: '#5d2299',
    950: '#000000',
  },
}
SCSS
$custom: #5d2299;
$custom-light: #9164b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2299",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 269.748,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40873,
    "c": 0.1795,
    "h": 301.1
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#5D2299
secondary
#8CBF58
accent
#E74195
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2299

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

Preview Lab → · Contrast checker → · Palette generator →

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