#5C2978#5C2978

#5C2978 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.134 H 311.5°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5C2978
RGBrgb(92, 41, 120)
HSLhsl(279, 49%, 32%)
HSVhsv(279, 66%, 47%)
CMYKcmyk(23.3%, 65.8%, 0%, 52.9%)
CIE-LABlab(27.35, 37.60, -35.68)
CIE-LCHlch(27.35, 51.83, 316.50°)
OKLaboklab(38.99% 0.0889 -0.1005)
OKLCHoklch(38.99% 0.134 311.5)
XYZxyz(8.5961, 5.2175, 18.3199)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2978 #457829
analogous
#352978 #5C2978 #78296D
triadic
#5C2978 #785C29 #29785C
tetradic
#5C2978 #783529 #457829 #296D78
square
#5C2978 #783529 #457829 #296D78
split-complementary
#5C2978 #6D7829 #297835
monochromatic
#160A1D #39194A #5C2978 #7F39A6 #9E56C5

Accessibility & contrast

On white

10.28
#5C2978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5C2978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2978
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2978#FFFFFF#000000##FFFFFF
##5C29781.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043E7A
Deuteranopia (green-blind)
#214276
Tritanopia (blue-blind)
#59384C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c2978;
/* rgb */ color: rgb(92, 41, 120);
/* oklch */ color: oklch(39.0% 0.134 311.5);
Tailwind
colors: {
  custom: {
    50: '#8d669f',
    500: '#5c2978',
    950: '#000000',
  },
}
SCSS
$custom: #5c2978;
$custom-light: #8d669f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2978",
  "rgb": {
    "r": 92,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 278.734,
    "s": 49.068,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38993,
    "c": 0.13413,
    "h": 311.5
  },
  "luminance": 0.05217
}

Semantic roles & 50–950 ramp

primary
#5C2978
secondary
#72AA53
accent
#D94F80
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5C2978

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

Preview Lab → · Contrast checker → · Palette generator →

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