#5C1F93#5C1F93

#5C1F93 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.176 H 302.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5C1F93
RGBrgb(92, 31, 147)
HSLhsl(272, 65%, 35%)
HSVhsv(272, 79%, 58%)
CMYKcmyk(37.4%, 78.9%, 0%, 42.4%)
CIE-LABlab(27.74, 48.82, -51.91)
CIE-LCHlch(27.74, 71.26, 313.24°)
OKLaboklab(39.92% 0.0954 -0.1481)
OKLCHoklch(39.92% 0.176 302.8)
XYZxyz(10.1688, 5.3619, 28.0973)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1F93 #56931F
analogous
#221F93 #5C1F93 #931F90
triadic
#5C1F93 #935C1F #1F935C
tetradic
#5C1F93 #93221F #56931F #1F9093
square
#5C1F93 #93221F #56931F #1F9093
split-complementary
#5C1F93 #90931F #1F9322
monochromatic
#1D0A2E #3C1460 #5C1F93 #7C2AC6 #9A52DA

Accessibility & contrast

On white

10.13
#5C1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5C1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1F93
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1F93#FFFFFF#000000##FFFFFF
##5C1F931.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#503E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c1f93;
/* rgb */ color: rgb(92, 31, 147);
/* oklch */ color: oklch(39.9% 0.176 302.8);
Tailwind
colors: {
  custom: {
    50: '#9062b4',
    500: '#5c1f93',
    950: '#000000',
  },
}
SCSS
$custom: #5c1f93;
$custom-light: #9062b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1f93",
  "rgb": {
    "r": 92,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 271.552,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39924,
    "c": 0.17619,
    "h": 302.8
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#5C1F93
secondary
#84BE50
accent
#E84090
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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