#5C1A82#5C1A82

#5C1A82 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.164 H 309.3°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#5C1A82
RGBrgb(92, 26, 130)
HSLhsl(278, 67%, 31%)
HSVhsv(278, 80%, 51%)
CMYKcmyk(29.2%, 80%, 0%, 49%)
CIE-LABlab(25.64, 46.81, -44.75)
CIE-LCHlch(25.64, 64.75, 316.29°)
OKLaboklab(38.01% 0.1041 -0.127)
OKLCHoklch(38.01% 0.164 309.3)
XYZxyz(8.8115, 4.6260, 21.5435)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1A82 #40821A
analogous
#281A82 #5C1A82 #821A74
triadic
#5C1A82 #825C1A #1A825C
tetradic
#5C1A82 #82281A #40821A #1A7482
square
#5C1A82 #82281A #40821A #1A7482
split-complementary
#5C1A82 #74821A #1A8228
monochromatic
#14061C #38104F #5C1A82 #8024B5 #A03ED8

Accessibility & contrast

On white

10.91
#5C1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5C1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1A82
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1A82#FFFFFF#000000##FFFFFF
##5C1A821.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#56344E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c1a82;
/* rgb */ color: rgb(92, 26, 130);
/* oklch */ color: oklch(38.0% 0.164 309.3);
Tailwind
colors: {
  custom: {
    50: '#8f5fa7',
    500: '#5c1a82',
    950: '#000000',
  },
}
SCSS
$custom: #5c1a82;
$custom-light: #8f5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1a82",
  "rgb": {
    "r": 92,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 278.077,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38011,
    "c": 0.16421,
    "h": 309.3
  },
  "luminance": 0.04626
}

Semantic roles & 50–950 ramp

primary
#5C1A82
secondary
#6CB642
accent
#EA3E7D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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