#5C1FA7#5C1FA7

#5C1FA7 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.7% C 0.197 H 297.0°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#5C1FA7
RGBrgb(92, 31, 167)
HSLhsl(267, 69%, 39%)
HSVhsv(267, 81%, 65%)
CMYKcmyk(44.9%, 81.4%, 0%, 34.5%)
CIE-LABlab(29.53, 53.74, -61.19)
CIE-LCHlch(29.53, 81.44, 311.29°)
OKLaboklab(41.71% 0.0894 -0.1753)
OKLCHoklch(41.71% 0.197 297)
XYZxyz(11.8768, 6.0451, 37.0928)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1FA7 #6AA71F
analogous
#1F26A7 #5C1FA7 #A01FA7
triadic
#5C1FA7 #A75C1F #1FA75C
tetradic
#5C1FA7 #A71F26 #6AA71F #1FA7A0
square
#5C1FA7 #A71F26 #6AA71F #1FA7A0
split-complementary
#5C1FA7 #A7A01F #26A71F
monochromatic
#230C40 #401573 #5C1FA7 #792BD8 #995FE1

Accessibility & contrast

On white

9.51
#5C1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5C1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1FA7
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1FA7#FFFFFF#000000##FFFFFF
##5C1FA71.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#484664
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c1fa7;
/* rgb */ color: rgb(92, 31, 167);
/* oklch */ color: oklch(41.7% 0.197 297.0);
Tailwind
colors: {
  custom: {
    50: '#9263c2',
    500: '#5c1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #5c1fa7;
$custom-light: #9263c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1fa7",
  "rgb": {
    "r": 92,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 266.912,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41714,
    "c": 0.19683,
    "h": 297
  },
  "luminance": 0.06045
}

Semantic roles & 50–950 ramp

primary
#5C1FA7
secondary
#96C65C
accent
#EC3C9D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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