#5D2284#5D2284

#5D2284 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.157 H 308.2°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#5D2284
RGBrgb(93, 34, 132)
HSLhsl(276, 59%, 33%)
HSVhsv(276, 74%, 52%)
CMYKcmyk(29.5%, 74.2%, 0%, 48.2%)
CIE-LABlab(27.12, 44.12, -43.59)
CIE-LCHlch(27.12, 62.02, 315.34°)
OKLaboklab(39.14% 0.0973 -0.1236)
OKLCHoklch(39.14% 0.157 308.2)
XYZxyz(9.2502, 5.1373, 22.3296)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2284 #498422
analogous
#2C2284 #5D2284 #84227A
triadic
#5D2284 #845D22 #22845D
tetradic
#5D2284 #842C22 #498422 #227A84
square
#5D2284 #842C22 #498422 #227A84
split-complementary
#5D2284 #7A8422 #22842C
monochromatic
#180923 #3B1553 #5D2284 #7F2FB5 #9E4FD2

Accessibility & contrast

On white

10.36
#5D2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2284
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2284#FFFFFF#000000##FFFFFF
##5D22841.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2284;
/* rgb */ color: rgb(93, 34, 132);
/* oklch */ color: oklch(39.1% 0.157 308.2);
Tailwind
colors: {
  custom: {
    50: '#8f63a8',
    500: '#5d2284',
    950: '#000000',
  },
}
SCSS
$custom: #5d2284;
$custom-light: #8f63a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2284",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 276.122,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39138,
    "c": 0.15732,
    "h": 308.2
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#5D2284
secondary
#76B54D
accent
#E24684
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D2284

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

Preview Lab → · Contrast checker → · Palette generator →

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