#5C2B78#5C2B78

#5C2B78 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.131 H 311.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5C2B78
RGBrgb(92, 43, 120)
HSLhsl(278, 47%, 32%)
HSVhsv(278, 64%, 47%)
CMYKcmyk(23.3%, 64.2%, 0%, 52.9%)
CIE-LABlab(27.73, 36.54, -35.05)
CIE-LCHlch(27.73, 50.63, 316.19°)
OKLaboklab(39.28% 0.0862 -0.0987)
OKLCHoklch(39.28% 0.131 311.1)
XYZxyz(8.6670, 5.3593, 18.3435)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2B78 #47782B
analogous
#362B78 #5C2B78 #782B6E
triadic
#5C2B78 #785C2B #2B785C
tetradic
#5C2B78 #78362B #47782B #2B6E78
square
#5C2B78 #78362B #47782B #2B6E78
split-complementary
#5C2B78 #6E782B #2B7836
monochromatic
#170B1E #391B4B #5C2B78 #7F3BA5 #9D5AC4

Accessibility & contrast

On white

10.14
#5C2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5C2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2B78
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2B78#FFFFFF#000000##FFFFFF
##5C2B781.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3F7A
Deuteranopia (green-blind)
#244276
Tritanopia (blue-blind)
#593A4D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c2b78;
/* rgb */ color: rgb(92, 43, 120);
/* oklch */ color: oklch(39.3% 0.131 311.1);
Tailwind
colors: {
  custom: {
    50: '#8d679f',
    500: '#5c2b78',
    950: '#000000',
  },
}
SCSS
$custom: #5c2b78;
$custom-light: #8d679f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2b78",
  "rgb": {
    "r": 92,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 278.182,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39275,
    "c": 0.13103,
    "h": 311.1
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#5C2B78
secondary
#74AA55
accent
#D75182
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5C2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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