#5C1F8D#5C1F8D

#5C1F8D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.170 H 304.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5C1F8D
RGBrgb(92, 31, 141)
HSLhsl(273, 64%, 34%)
HSVhsv(273, 78%, 55%)
CMYKcmyk(34.8%, 78%, 0%, 44.7%)
CIE-LABlab(27.24, 47.37, -49.03)
CIE-LCHlch(27.24, 68.17, 314.02°)
OKLaboklab(39.41% 0.0969 -0.1396)
OKLCHoklch(39.41% 0.17 304.8)
XYZxyz(9.7102, 5.1784, 25.6821)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1F8D #508D1F
analogous
#251F8D #5C1F8D #8D1F87
triadic
#5C1F8D #8D5C1F #1F8D5C
tetradic
#5C1F8D #8D251F #508D1F #1F878D
square
#5C1F8D #8D251F #508D1F #1F878D
split-complementary
#5C1F8D #878D1F #1F8D25
monochromatic
#1B0929 #3B145B #5C1F8D #7D2ABF #9B4ED8

Accessibility & contrast

On white

10.32
#5C1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5C1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1F8D
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1F8D#FFFFFF#000000##FFFFFF
##5C1F8D1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#533B55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c1f8d;
/* rgb */ color: rgb(92, 31, 141);
/* oklch */ color: oklch(39.4% 0.170 304.8);
Tailwind
colors: {
  custom: {
    50: '#8f62af',
    500: '#5c1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #5c1f8d;
$custom-light: #8f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1f8d",
  "rgb": {
    "r": 92,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 273.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39413,
    "c": 0.16998,
    "h": 304.8
  },
  "luminance": 0.05178
}

Semantic roles & 50–950 ramp

primary
#5C1F8D
secondary
#7EBB4D
accent
#E7418B
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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