#5C288F#5C288F

#5C288F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.161 H 302.8°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5C288F
RGBrgb(92, 40, 143)
HSLhsl(270, 56%, 36%)
HSVhsv(270, 72%, 56%)
CMYKcmyk(35.7%, 72%, 0%, 43.9%)
CIE-LABlab(28.84, 43.78, -47.66)
CIE-LCHlch(28.84, 64.71, 312.57°)
OKLaboklab(40.6% 0.0876 -0.1357)
OKLCHoklch(40.6% 0.161 302.8)
XYZxyz(10.1292, 5.7761, 26.5625)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C288F #5B8F28
analogous
#28288F #5C288F #8F288E
triadic
#5C288F #8F5C28 #288F5C
tetradic
#5C288F #8F2828 #5B8F28 #288E8F
square
#5C288F #8F2828 #5B8F28 #288E8F
split-complementary
#5C288F #8E8F28 #288F28
monochromatic
#1E0D2F #3D1B5F #5C288F #7B35BF #995FD2

Accessibility & contrast

On white

9.74
#5C288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5C288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C288F
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C288F#FFFFFF#000000##FFFFFF
##5C288F1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#524058
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c288f;
/* rgb */ color: rgb(92, 40, 143);
/* oklch */ color: oklch(40.6% 0.161 302.8);
Tailwind
colors: {
  custom: {
    50: '#8f66b1',
    500: '#5c288f',
    950: '#000000',
  },
}
SCSS
$custom: #5c288f;
$custom-light: #8f66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c288f",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 270.291,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40597,
    "c": 0.16146,
    "h": 302.8
  },
  "luminance": 0.05776
}

Semantic roles & 50–950 ramp

primary
#5C288F
secondary
#89B85B
accent
#E04893
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C288F

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

Preview Lab → · Contrast checker → · Palette generator →

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