#5D2292#5D2292

#5D2292 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.172 H 303.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5D2292
RGBrgb(93, 34, 146)
HSLhsl(272, 62%, 35%)
HSVhsv(272, 77%, 57%)
CMYKcmyk(36.3%, 76.7%, 0%, 42.7%)
CIE-LABlab(28.24, 47.49, -50.48)
CIE-LCHlch(28.24, 69.31, 313.25°)
OKLaboklab(40.28% 0.0945 -0.1439)
OKLCHoklch(40.28% 0.172 303.3)
XYZxyz(10.2733, 5.5465, 27.7179)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2292 #579222
analogous
#252292 #5D2292 #92228F
triadic
#5D2292 #925D22 #22925D
tetradic
#5D2292 #922522 #579222 #228F92
square
#5D2292 #922522 #579222 #228F92
split-complementary
#5D2292 #8F9222 #229225
monochromatic
#1E0B2F #3D1660 #5D2292 #7D2EC4 #9B57D8

Accessibility & contrast

On white

9.96
#5D2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2292
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2292#FFFFFF#000000##FFFFFF
##5D22921.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#523E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2292;
/* rgb */ color: rgb(93, 34, 146);
/* oklch */ color: oklch(40.3% 0.172 303.3);
Tailwind
colors: {
  custom: {
    50: '#9064b3',
    500: '#5d2292',
    950: '#000000',
  },
}
SCSS
$custom: #5d2292;
$custom-light: #9064b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2292",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 271.607,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40276,
    "c": 0.17212,
    "h": 303.3
  },
  "luminance": 0.05547
}

Semantic roles & 50–950 ramp

primary
#5D2292
secondary
#85BC54
accent
#E54390
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2292

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

Preview Lab → · Contrast checker → · Palette generator →

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