#5D2286#5D2286

#5D2286 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.159 H 307.4°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5D2286
RGBrgb(93, 34, 134)
HSLhsl(275, 60%, 33%)
HSVhsv(275, 75%, 53%)
CMYKcmyk(30.6%, 74.6%, 0%, 47.5%)
CIE-LABlab(27.28, 44.59, -44.60)
CIE-LCHlch(27.28, 63.06, 315.00°)
OKLaboklab(39.3% 0.0969 -0.1266)
OKLCHoklch(39.3% 0.159 307.4)
XYZxyz(9.3884, 5.1926, 23.0573)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2286 #4B8622
analogous
#2B2286 #5D2286 #86227D
triadic
#5D2286 #865D22 #22865D
tetradic
#5D2286 #862B22 #4B8622 #227D86
square
#5D2286 #862B22 #4B8622 #227D86
split-complementary
#5D2286 #7D8622 #22862B
monochromatic
#190924 #3B1655 #5D2286 #7F2EB7 #9D50D3

Accessibility & contrast

On white

10.30
#5D2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5D2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2286
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2286#FFFFFF#000000##FFFFFF
##5D22861.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#563952
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d2286;
/* rgb */ color: rgb(93, 34, 134);
/* oklch */ color: oklch(39.3% 0.159 307.4);
Tailwind
colors: {
  custom: {
    50: '#8f63aa',
    500: '#5d2286',
    950: '#000000',
  },
}
SCSS
$custom: #5d2286;
$custom-light: #8f63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2286",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 275.4,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39295,
    "c": 0.15944,
    "h": 307.4
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#5D2286
secondary
#79B64E
accent
#E34586
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2286

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

Preview Lab → · Contrast checker → · Palette generator →

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