#5C319F#5C319F

#5C319F is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.168 H 296.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5C319F
RGBrgb(92, 49, 159)
HSLhsl(263, 53%, 41%)
HSVhsv(263, 69%, 62%)
CMYKcmyk(42.1%, 69.2%, 0%, 37.6%)
CIE-LABlab(31.75, 43.39, -52.72)
CIE-LCHlch(31.75, 68.28, 309.46°)
OKLaboklab(43.07% 0.0753 -0.1506)
OKLCHoklch(43.07% 0.168 296.6)
XYZxyz(11.7683, 6.9749, 33.5204)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C319F #749F31
analogous
#313D9F #5C319F #93319F
triadic
#5C319F #9F5C31 #319F5C
tetradic
#5C319F #9F313D #749F31 #319F93
square
#5C319F #9F313D #749F31 #319F93
split-complementary
#5C319F #9F9331 #3D9F31
monochromatic
#261441 #412370 #5C319F #7947C6 #9B76D5

Accessibility & contrast

On white

8.77
#5C319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5C319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C319F
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C319F#FFFFFF#000000##FFFFFF
##5C319F1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#4B4C64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c319f;
/* rgb */ color: rgb(92, 49, 159);
/* oklch */ color: oklch(43.1% 0.168 296.6);
Tailwind
colors: {
  custom: {
    50: '#906cbc',
    500: '#5c319f',
    950: '#000000',
  },
}
SCSS
$custom: #5c319f;
$custom-light: #906cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c319f",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 263.455,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43069,
    "c": 0.16837,
    "h": 296.6
  },
  "luminance": 0.06975
}

Semantic roles & 50–950 ramp

primary
#5C319F
secondary
#9EBD6F
accent
#DC4CA4
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C319F

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

Preview Lab → · Contrast checker → · Palette generator →

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