#5C287B#5C287B

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

Color values

HEX#5C287B
RGBrgb(92, 40, 123)
HSLhsl(278, 51%, 32%)
HSVhsv(278, 67%, 48%)
CMYKcmyk(25.2%, 67.5%, 0%, 51.8%)
CIE-LABlab(27.36, 38.84, -37.55)
CIE-LCHlch(27.36, 54.02, 315.96°)
OKLaboklab(39.07% 0.09 -0.106)
OKLCHoklch(39.07% 0.139 310.3)
XYZxyz(8.7469, 5.2231, 19.2824)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C287B #477B28
analogous
#32287B #5C287B #7B2871
triadic
#5C287B #7B5C28 #287B5C
tetradic
#5C287B #7B3228 #477B28 #28717B
square
#5C287B #7B3228 #477B28 #28717B
split-complementary
#5C287B #717B28 #287B32
monochromatic
#170A1F #39194D #5C287B #7F37A9 #9D56C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C287B#FFFFFF#000000##FFFFFF
##5C287B1.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)
#003E7E
Deuteranopia (green-blind)
#1D4179
Tritanopia (blue-blind)
#58394E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c287b;
/* rgb */ color: rgb(92, 40, 123);
/* oklch */ color: oklch(39.1% 0.139 310.3);
Tailwind
colors: {
  custom: {
    50: '#8d66a2',
    500: '#5c287b',
    950: '#000000',
  },
}
SCSS
$custom: #5c287b;
$custom-light: #8d66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c287b",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 277.59,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39069,
    "c": 0.13902,
    "h": 310.3
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#5C287B
secondary
#74AD52
accent
#DA4D82
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5C287B

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

Preview Lab → · Contrast checker → · Palette generator →

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