#5C288B#5C288B

#5C288B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.157 H 304.2°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5C288B
RGBrgb(92, 40, 139)
HSLhsl(272, 55%, 35%)
HSVhsv(272, 71%, 55%)
CMYKcmyk(33.8%, 71.2%, 0%, 45.5%)
CIE-LABlab(28.53, 42.77, -45.68)
CIE-LCHlch(28.53, 62.58, 313.11°)
OKLaboklab(40.28% 0.0882 -0.1299)
OKLCHoklch(40.28% 0.157 304.2)
XYZxyz(9.8316, 5.6570, 24.9951)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C288B #578B28
analogous
#2A288B #5C288B #8B2888
triadic
#5C288B #8B5C28 #288B5C
tetradic
#5C288B #8B2A28 #578B28 #28888B
square
#5C288B #8B2A28 #578B28 #28888B
split-complementary
#5C288B #888B28 #288B2A
monochromatic
#1D0D2C #3D1A5B #5C288B #7B36BB #9A5DD0

Accessibility & contrast

On white

9.85
#5C288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C288B
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C288B#FFFFFF#000000##FFFFFF
##5C288B1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#533F56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c288b;
/* rgb */ color: rgb(92, 40, 139);
/* oklch */ color: oklch(40.3% 0.157 304.2);
Tailwind
colors: {
  custom: {
    50: '#8e66ae',
    500: '#5c288b',
    950: '#000000',
  },
}
SCSS
$custom: #5c288b;
$custom-light: #8e66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c288b",
  "rgb": {
    "r": 92,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 271.515,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40278,
    "c": 0.15699,
    "h": 304.2
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#5C288B
secondary
#85B659
accent
#DF4990
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C288B

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

Preview Lab → · Contrast checker → · Palette generator →

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