#5C288E#5C288E

#5C288E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.160 H 303.2°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5C288E
RGBrgb(92, 40, 142)
HSLhsl(271, 56%, 36%)
HSVhsv(271, 72%, 56%)
CMYKcmyk(35.2%, 71.8%, 0%, 44.3%)
CIE-LABlab(28.76, 43.52, -47.17)
CIE-LCHlch(28.76, 64.18, 312.70°)
OKLaboklab(40.52% 0.0877 -0.1342)
OKLCHoklch(40.52% 0.16 303.2)
XYZxyz(10.0538, 5.7459, 26.1653)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C288E #5A8E28
analogous
#29288E #5C288E #8E288D
triadic
#5C288E #8E5C28 #288E5C
tetradic
#5C288E #8E2928 #5A8E28 #288D8E
square
#5C288E #8E2928 #5A8E28 #288D8E
split-complementary
#5C288E #8D8E28 #288E29
monochromatic
#1E0D2F #3D1B5E #5C288E #7B35BE #995FD2

Accessibility & contrast

On white

9.77
#5C288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5C288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C288E
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C288E#FFFFFF#000000##FFFFFF
##5C288E1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c288e;
/* rgb */ color: rgb(92, 40, 142);
/* oklch */ color: oklch(40.5% 0.160 303.2);
Tailwind
colors: {
  custom: {
    50: '#8f66b0',
    500: '#5c288e',
    950: '#000000',
  },
}
SCSS
$custom: #5c288e;
$custom-light: #8f66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c288e",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 270.588,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40517,
    "c": 0.16035,
    "h": 303.2
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#5C288E
secondary
#88B75B
accent
#DF4892
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C288E

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

Preview Lab → · Contrast checker → · Palette generator →

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