#5C1FA8#5C1FA8

#5C1FA8 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.198 H 296.8°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5C1FA8
RGBrgb(92, 31, 168)
HSLhsl(267, 69%, 39%)
HSVhsv(267, 82%, 66%)
CMYKcmyk(45.2%, 81.5%, 0%, 34.1%)
CIE-LABlab(29.62, 53.99, -61.64)
CIE-LCHlch(29.62, 81.94, 311.21°)
OKLaboklab(41.81% 0.0891 -0.1766)
OKLCHoklch(41.81% 0.198 296.8)
XYZxyz(11.9696, 6.0822, 37.5815)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1FA8 #6BA81F
analogous
#1F27A8 #5C1FA8 #A11FA8
triadic
#5C1FA8 #A85C1F #1FA85C
tetradic
#5C1FA8 #A81F27 #6BA81F #1FA8A1
square
#5C1FA8 #A81F27 #6BA81F #1FA8A1
split-complementary
#5C1FA8 #A8A11F #27A81F
monochromatic
#230C41 #401574 #5C1FA8 #792CD8 #9A60E2

Accessibility & contrast

On white

9.47
#5C1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5C1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1FA8
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1FA8#FFFFFF#000000##FFFFFF
##5C1FA81.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#474765
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c1fa8;
/* rgb */ color: rgb(92, 31, 168);
/* oklch */ color: oklch(41.8% 0.198 296.8);
Tailwind
colors: {
  custom: {
    50: '#9263c3',
    500: '#5c1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #5c1fa8;
$custom-light: #9263c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1fa8",
  "rgb": {
    "r": 92,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 266.715,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41807,
    "c": 0.19785,
    "h": 296.8
  },
  "luminance": 0.06082
}

Semantic roles & 50–950 ramp

primary
#5C1FA8
secondary
#97C65D
accent
#EC3C9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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