#5C1782#5C1782

#5C1782 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.167 H 309.6°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5C1782
RGBrgb(92, 23, 130)
HSLhsl(279, 70%, 30%)
HSVhsv(279, 82%, 51%)
CMYKcmyk(29.2%, 82.3%, 0%, 49%)
CIE-LABlab(25.26, 47.91, -45.37)
CIE-LCHlch(25.26, 65.98, 316.56°)
OKLaboklab(37.74% 0.1067 -0.1288)
OKLCHoklch(37.74% 0.167 309.6)
XYZxyz(8.7485, 4.5000, 21.5225)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1782 #3D8217
analogous
#271782 #5C1782 #821772
triadic
#5C1782 #825C17 #17825C
tetradic
#5C1782 #822717 #3D8217 #177282
square
#5C1782 #822717 #3D8217 #177282
split-complementary
#5C1782 #728217 #178227
monochromatic
#12051A #370E4E #5C1782 #8120B6 #A138DC

Accessibility & contrast

On white

11.05
#5C1782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5C1782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1782
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1782#FFFFFF#000000##FFFFFF
##5C17821.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#56334D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1782;
/* rgb */ color: rgb(92, 23, 130);
/* oklch */ color: oklch(37.7% 0.167 309.6);
Tailwind
colors: {
  custom: {
    50: '#8f5ea7',
    500: '#5c1782',
    950: '#000000',
  },
}
SCSS
$custom: #5c1782;
$custom-light: #8f5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1782",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 278.692,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.37744,
    "c": 0.16723,
    "h": 309.6
  },
  "luminance": 0.045
}

Semantic roles & 50–950 ramp

primary
#5C1782
secondary
#69B63E
accent
#ED3B7A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1782

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

Preview Lab → · Contrast checker → · Palette generator →

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