#5D2285#5D2285

#5D2285 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.158 H 307.8°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5D2285
RGBrgb(93, 34, 133)
HSLhsl(276, 59%, 33%)
HSVhsv(276, 74%, 52%)
CMYKcmyk(30.1%, 74.4%, 0%, 47.8%)
CIE-LABlab(27.20, 44.35, -44.10)
CIE-LCHlch(27.20, 62.54, 315.17°)
OKLaboklab(39.22% 0.0971 -0.1251)
OKLCHoklch(39.22% 0.158 307.8)
XYZxyz(9.3190, 5.1648, 22.6917)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2285 #4A8522
analogous
#2C2285 #5D2285 #85227B
triadic
#5D2285 #855D22 #22855D
tetradic
#5D2285 #852C22 #4A8522 #227B85
square
#5D2285 #852C22 #4A8522 #227B85
split-complementary
#5D2285 #7B8522 #22852C
monochromatic
#190924 #3B1654 #5D2285 #7F2EB6 #9D4FD2

Accessibility & contrast

On white

10.33
#5D2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5D2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2285
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2285#FFFFFF#000000##FFFFFF
##5D22851.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#024183
Tritanopia (blue-blind)
#573951
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d2285;
/* rgb */ color: rgb(93, 34, 133);
/* oklch */ color: oklch(39.2% 0.158 307.8);
Tailwind
colors: {
  custom: {
    50: '#8f63a9',
    500: '#5d2285',
    950: '#000000',
  },
}
SCSS
$custom: #5d2285;
$custom-light: #8f63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2285",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 275.758,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39216,
    "c": 0.15838,
    "h": 307.8
  },
  "luminance": 0.05165
}

Semantic roles & 50–950 ramp

primary
#5D2285
secondary
#77B64D
accent
#E24585
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2285

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

Preview Lab → · Contrast checker → · Palette generator →

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