#5C1FA6#5C1FA6

#5C1FA6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.196 H 297.3°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5C1FA6
RGBrgb(92, 31, 166)
HSLhsl(267, 69%, 39%)
HSVhsv(267, 81%, 65%)
CMYKcmyk(44.6%, 81.3%, 0%, 34.9%)
CIE-LABlab(29.43, 53.49, -60.74)
CIE-LCHlch(29.43, 80.93, 311.37°)
OKLaboklab(41.62% 0.0898 -0.174)
OKLCHoklch(41.62% 0.196 297.3)
XYZxyz(11.7847, 6.0082, 36.6078)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1FA6 #69A61F
analogous
#1F25A6 #5C1FA6 #9F1FA6
triadic
#5C1FA6 #A65C1F #1FA65C
tetradic
#5C1FA6 #A61F25 #69A61F #1FA69F
square
#5C1FA6 #A61F25 #69A61F #1FA69F
split-complementary
#5C1FA6 #A69F1F #25A61F
monochromatic
#230C3F #3F1572 #5C1FA6 #792BD7 #995EE1

Accessibility & contrast

On white

9.54
#5C1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5C1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1FA6
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1FA6#FFFFFF#000000##FFFFFF
##5C1FA61.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#484663
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c1fa6;
/* rgb */ color: rgb(92, 31, 166);
/* oklch */ color: oklch(41.6% 0.196 297.3);
Tailwind
colors: {
  custom: {
    50: '#9263c2',
    500: '#5c1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5c1fa6;
$custom-light: #9263c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1fa6",
  "rgb": {
    "r": 92,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 267.111,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41622,
    "c": 0.1958,
    "h": 297.3
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#5C1FA6
secondary
#96C55B
accent
#EB3C9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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