#5D287F#5D287F

#5D287F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.144 H 309.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5D287F
RGBrgb(93, 40, 127)
HSLhsl(277, 52%, 33%)
HSVhsv(277, 69%, 50%)
CMYKcmyk(26.8%, 68.5%, 0%, 50.2%)
CIE-LABlab(27.78, 40.04, -39.39)
CIE-LCHlch(27.78, 56.17, 315.47°)
OKLaboklab(39.49% 0.0911 -0.1113)
OKLCHoklch(39.49% 0.144 309.3)
XYZxyz(9.1030, 5.3772, 20.6329)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D287F #4A7F28
analogous
#32287F #5D287F #7F2875
triadic
#5D287F #7F5D28 #287F5D
tetradic
#5D287F #7F3228 #4A7F28 #28757F
square
#5D287F #7F3228 #4A7F28 #28757F
split-complementary
#5D287F #757F28 #287F32
monochromatic
#190B22 #3B1950 #5D287F #7F37AE #9D57CA

Accessibility & contrast

On white

10.12
#5D287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D287F
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D287F#FFFFFF#000000##FFFFFF
##5D287F1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#1A427D
Tritanopia (blue-blind)
#583A50
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d287f;
/* rgb */ color: rgb(93, 40, 127);
/* oklch */ color: oklch(39.5% 0.144 309.3);
Tailwind
colors: {
  custom: {
    50: '#8e66a5',
    500: '#5d287f',
    950: '#000000',
  },
}
SCSS
$custom: #5d287f;
$custom-light: #8e66a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d287f",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 276.552,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39493,
    "c": 0.14383,
    "h": 309.3
  },
  "luminance": 0.05377
}

Semantic roles & 50–950 ramp

primary
#5D287F
secondary
#77AF54
accent
#DC4C84
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D287F

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

Preview Lab → · Contrast checker → · Palette generator →

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