#5C287C#5C287C

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

Color values

HEX#5C287C
RGBrgb(92, 40, 124)
HSLhsl(277, 51%, 32%)
HSVhsv(277, 68%, 49%)
CMYKcmyk(25.8%, 67.7%, 0%, 51.4%)
CIE-LABlab(27.43, 39.08, -38.07)
CIE-LCHlch(27.43, 54.56, 315.75°)
OKLaboklab(39.14% 0.0899 -0.1075)
OKLCHoklch(39.14% 0.14 309.9)
XYZxyz(8.8098, 5.2483, 19.6138)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C287C #487C28
analogous
#32287C #5C287C #7C2872
triadic
#5C287C #7C5C28 #287C5C
tetradic
#5C287C #7C3228 #487C28 #28727C
square
#5C287C #7C3228 #487C28 #28727C
split-complementary
#5C287C #727C28 #287C32
monochromatic
#170A1F #3A194E #5C287C #7E37AA #9D56C8

Accessibility & contrast

On white

10.25
#5C287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C287C
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C287C#FFFFFF#000000##FFFFFF
##5C287C1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#1C427A
Tritanopia (blue-blind)
#58394E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c287c;
/* rgb */ color: rgb(92, 40, 124);
/* oklch */ color: oklch(39.1% 0.140 309.9);
Tailwind
colors: {
  custom: {
    50: '#8d66a2',
    500: '#5c287c',
    950: '#000000',
  },
}
SCSS
$custom: #5c287c;
$custom-light: #8d66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c287c",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 277.143,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39142,
    "c": 0.14014,
    "h": 309.9
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#5C287C
secondary
#75AD52
accent
#DB4D83
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5C287C

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

Preview Lab → · Contrast checker → · Palette generator →

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