#5C1E9F#5C1E9F

#5C1E9F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.190 H 299.3°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5C1E9F
RGBrgb(92, 30, 159)
HSLhsl(269, 68%, 37%)
HSVhsv(269, 81%, 62%)
CMYKcmyk(42.1%, 81.1%, 0%, 37.6%)
CIE-LABlab(28.66, 52.15, -57.76)
CIE-LCHlch(28.66, 77.82, 312.08°)
OKLaboklab(40.89% 0.0927 -0.1653)
OKLCHoklch(40.89% 0.19 299.3)
XYZxyz(11.1343, 5.7069, 33.3091)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1E9F #619F1E
analogous
#1E219F #5C1E9F #9D1E9F
triadic
#5C1E9F #9F5C1E #1E9F5C
tetradic
#5C1E9F #9F1E21 #619F1E #1E9F9D
square
#5C1E9F #9F1E21 #619F1E #1E9F9D
split-complementary
#5C1E9F #9F9D1E #219F1E
monochromatic
#200B38 #3E146C #5C1E9F #7A28D2 #9958DF

Accessibility & contrast

On white

9.81
#5C1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5C1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1E9F
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1E9F#FFFFFF#000000##FFFFFF
##5C1E9F1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#4C425F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c1e9f;
/* rgb */ color: rgb(92, 30, 159);
/* oklch */ color: oklch(40.9% 0.190 299.3);
Tailwind
colors: {
  custom: {
    50: '#9162bc',
    500: '#5c1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5c1e9f;
$custom-light: #9162bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1e9f",
  "rgb": {
    "r": 92,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 268.837,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4089,
    "c": 0.18951,
    "h": 299.3
  },
  "luminance": 0.05707
}

Semantic roles & 50–950 ramp

primary
#5C1E9F
secondary
#8FC356
accent
#EB3D97
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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