#5C287D#5C287D

#5C287D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.141 H 309.5°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5C287D
RGBrgb(92, 40, 125)
HSLhsl(277, 52%, 32%)
HSVhsv(277, 68%, 49%)
CMYKcmyk(26.4%, 68%, 0%, 51%)
CIE-LABlab(27.50, 39.32, -38.59)
CIE-LCHlch(27.50, 55.09, 315.54°)
OKLaboklab(39.21% 0.0898 -0.109)
OKLCHoklch(39.21% 0.141 309.5)
XYZxyz(8.8734, 5.2737, 19.9485)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C287D #497D28
analogous
#32287D #5C287D #7D2873
triadic
#5C287D #7D5C28 #287D5C
tetradic
#5C287D #7D3228 #497D28 #28737D
square
#5C287D #7D3228 #497D28 #28737D
split-complementary
#5C287D #737D28 #287D32
monochromatic
#180A20 #3A194F #5C287D #7E37AB #9D56C9

Accessibility & contrast

On white

10.22
#5C287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5C287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C287D
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C287D#FFFFFF#000000##FFFFFF
##5C287D1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#1B427B
Tritanopia (blue-blind)
#573A4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c287d;
/* rgb */ color: rgb(92, 40, 125);
/* oklch */ color: oklch(39.2% 0.141 309.5);
Tailwind
colors: {
  custom: {
    50: '#8d66a3',
    500: '#5c287d',
    950: '#000000',
  },
}
SCSS
$custom: #5c287d;
$custom-light: #8d66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c287d",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 276.706,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39214,
    "c": 0.14126,
    "h": 309.5
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#5C287D
secondary
#76AE53
accent
#DB4D84
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5C287D

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

Preview Lab → · Contrast checker → · Palette generator →

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