#5C1F8A#5C1F8A

#5C1F8A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.167 H 305.8°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5C1F8A
RGBrgb(92, 31, 138)
HSLhsl(274, 63%, 33%)
HSVhsv(274, 78%, 54%)
CMYKcmyk(33.3%, 77.5%, 0%, 45.9%)
CIE-LABlab(26.99, 46.66, -47.56)
CIE-LCHlch(26.99, 66.63, 314.45°)
OKLaboklab(39.16% 0.0977 -0.1353)
OKLCHoklch(39.16% 0.167 305.8)
XYZxyz(9.4900, 5.0903, 24.5224)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1F8A #4D8A1F
analogous
#271F8A #5C1F8A #8A1F82
triadic
#5C1F8A #8A5C1F #1F8A5C
tetradic
#5C1F8A #8A271F #4D8A1F #1F828A
square
#5C1F8A #8A271F #4D8A1F #1F828A
split-complementary
#5C1F8A #828A1F #1F8A27
monochromatic
#190926 #3B1458 #5C1F8A #7D2ABC #9B4CD7

Accessibility & contrast

On white

10.41
#5C1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5C1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1F8A
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1F8A#FFFFFF#000000##FFFFFF
##5C1F8A1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#543A53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c1f8a;
/* rgb */ color: rgb(92, 31, 138);
/* oklch */ color: oklch(39.2% 0.167 305.8);
Tailwind
colors: {
  custom: {
    50: '#8f62ad',
    500: '#5c1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c1f8a;
$custom-light: #8f62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1f8a",
  "rgb": {
    "r": 92,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 274.206,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39163,
    "c": 0.16687,
    "h": 305.8
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#5C1F8A
secondary
#7BBA4B
accent
#E64188
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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