#5D2287#5D2287

#5D2287 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.160 H 307.1°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5D2287
RGBrgb(93, 34, 135)
HSLhsl(275, 60%, 33%)
HSVhsv(275, 75%, 53%)
CMYKcmyk(31.1%, 74.8%, 0%, 47.1%)
CIE-LABlab(27.35, 44.83, -45.09)
CIE-LCHlch(27.35, 63.59, 314.83°)
OKLaboklab(39.38% 0.0968 -0.128)
OKLCHoklch(39.38% 0.16 307.1)
XYZxyz(9.4585, 5.2206, 23.4264)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2287 #4C8722
analogous
#2B2287 #5D2287 #87227E
triadic
#5D2287 #875D22 #22875D
tetradic
#5D2287 #872B22 #4C8722 #227E87
square
#5D2287 #872B22 #4C8722 #227E87
split-complementary
#5D2287 #7E8722 #22872B
monochromatic
#1A0925 #3B1656 #5D2287 #7F2EB8 #9D50D3

Accessibility & contrast

On white

10.27
#5D2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2287
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2287#FFFFFF#000000##FFFFFF
##5D22871.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#563A52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d2287;
/* rgb */ color: rgb(93, 34, 135);
/* oklch */ color: oklch(39.4% 0.160 307.1);
Tailwind
colors: {
  custom: {
    50: '#8f63ab',
    500: '#5d2287',
    950: '#000000',
  },
}
SCSS
$custom: #5d2287;
$custom-light: #8f63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2287",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 275.05,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39375,
    "c": 0.16049,
    "h": 307.1
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#5D2287
secondary
#7AB74E
accent
#E34587
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2287

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

Preview Lab → · Contrast checker → · Palette generator →

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