#5C288A#5C288A

#5C288A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.156 H 304.5°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5C288A
RGBrgb(92, 40, 138)
HSLhsl(272, 55%, 35%)
HSVhsv(272, 71%, 54%)
CMYKcmyk(33.3%, 71%, 0%, 45.9%)
CIE-LABlab(28.45, 42.52, -45.19)
CIE-LCHlch(28.45, 62.05, 313.26°)
OKLaboklab(40.2% 0.0884 -0.1284)
OKLCHoklch(40.2% 0.156 304.5)
XYZxyz(9.7588, 5.6279, 24.6120)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C288A #568A28
analogous
#2B288A #5C288A #8A2887
triadic
#5C288A #8A5C28 #288A5C
tetradic
#5C288A #8A2B28 #568A28 #28878A
square
#5C288A #8A2B28 #568A28 #28878A
split-complementary
#5C288A #878A28 #288A2B
monochromatic
#1D0C2B #3C1A5B #5C288A #7C36B9 #9A5DD0

Accessibility & contrast

On white

9.88
#5C288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5C288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C288A
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C288A#FFFFFF#000000##FFFFFF
##5C288A1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#533E56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c288a;
/* rgb */ color: rgb(92, 40, 138);
/* oklch */ color: oklch(40.2% 0.156 304.5);
Tailwind
colors: {
  custom: {
    50: '#8e66ad',
    500: '#5c288a',
    950: '#000000',
  },
}
SCSS
$custom: #5c288a;
$custom-light: #8e66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c288a",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 271.837,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.402,
    "c": 0.15587,
    "h": 304.5
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#5C288A
secondary
#84B559
accent
#DE498F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C288A

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

Preview Lab → · Contrast checker → · Palette generator →

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