#5C319E#5C319E

#5C319E is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.167 H 296.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5C319E
RGBrgb(92, 49, 158)
HSLhsl(264, 53%, 41%)
HSVhsv(264, 69%, 62%)
CMYKcmyk(41.8%, 69%, 0%, 38%)
CIE-LABlab(31.67, 43.12, -52.24)
CIE-LCHlch(31.67, 67.74, 309.54°)
OKLaboklab(42.99% 0.0755 -0.1492)
OKLCHoklch(42.99% 0.167 296.8)
XYZxyz(11.6819, 6.9403, 33.0653)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C319E #739E31
analogous
#313C9E #5C319E #92319E
triadic
#5C319E #9E5C31 #319E5C
tetradic
#5C319E #9E313C #739E31 #319E92
square
#5C319E #9E313C #739E31 #319E92
split-complementary
#5C319E #9E9231 #3C9E31
monochromatic
#261441 #41236F #5C319E #7946C6 #9B75D4

Accessibility & contrast

On white

8.79
#5C319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5C319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C319E
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C319E#FFFFFF#000000##FFFFFF
##5C319E1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#4B4B63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c319e;
/* rgb */ color: rgb(92, 49, 158);
/* oklch */ color: oklch(43.0% 0.167 296.8);
Tailwind
colors: {
  custom: {
    50: '#906cbb',
    500: '#5c319e',
    950: '#000000',
  },
}
SCSS
$custom: #5c319e;
$custom-light: #906cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c319e",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 263.67,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42988,
    "c": 0.16718,
    "h": 296.8
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#5C319E
secondary
#9EBC6E
accent
#DC4CA3
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C319E

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

Preview Lab → · Contrast checker → · Palette generator →

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