#5C169E#5C169E

#5C169E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.195 H 300.3°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#5C169E
RGBrgb(92, 22, 158)
HSLhsl(271, 76%, 35%)
HSVhsv(271, 86%, 62%)
CMYKcmyk(41.8%, 86.1%, 0%, 38%)
CIE-LABlab(27.62, 54.68, -58.86)
CIE-LCHlch(27.62, 80.34, 312.89°)
OKLaboklab(40.14% 0.0985 -0.1684)
OKLCHoklch(40.14% 0.195 300.3)
XYZxyz(10.8705, 5.3176, 32.7948)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C169E #589E16
analogous
#18169E #5C169E #9E169C
triadic
#5C169E #9E5C16 #169E5C
tetradic
#5C169E #9E1816 #589E16 #169C9E
square
#5C169E #9E1816 #589E16 #169C9E
split-complementary
#5C169E #9C9E16 #169E18
monochromatic
#1D0733 #3D0F68 #5C169E #7B1DD4 #9A49E6

Accessibility & contrast

On white

10.18
#5C169E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5C169E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C169E
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C169E#FFFFFF#000000##FFFFFF
##5C169E1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4C3F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c169e;
/* rgb */ color: rgb(92, 22, 158);
/* oklch */ color: oklch(40.1% 0.195 300.3);
Tailwind
colors: {
  custom: {
    50: '#915fbc',
    500: '#5c169e',
    950: '#000000',
  },
}
SCSS
$custom: #5c169e;
$custom-light: #915fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c169e",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 158
  },
  "hsl": {
    "h": 270.882,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40143,
    "c": 0.19512,
    "h": 300.3
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#5C169E
secondary
#86C749
accent
#F23691
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5C169E

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

Preview Lab → · Contrast checker → · Palette generator →

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