#5C1682#5C1682

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

Color values

HEX#5C1682
RGBrgb(92, 22, 130)
HSLhsl(279, 71%, 30%)
HSVhsv(279, 83%, 51%)
CMYKcmyk(29.2%, 83.1%, 0%, 49%)
CIE-LABlab(25.14, 48.26, -45.56)
CIE-LCHlch(25.14, 66.37, 316.65°)
OKLaboklab(37.66% 0.1075 -0.1294)
OKLCHoklch(37.66% 0.168 309.7)
XYZxyz(8.7290, 4.4610, 21.5160)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1682 #3C8216
analogous
#261682 #5C1682 #821672
triadic
#5C1682 #825C16 #16825C
tetradic
#5C1682 #822616 #3C8216 #167282
square
#5C1682 #822616 #3C8216 #167282
split-complementary
#5C1682 #728216 #168226
monochromatic
#13041A #370D4E #5C1682 #811FB6 #A235DD

Accessibility & contrast

On white

11.10
#5C1682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5C1682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1682
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1682#FFFFFF#000000##FFFFFF
##5C16821.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1682;
/* rgb */ color: rgb(92, 22, 130);
/* oklch */ color: oklch(37.7% 0.168 309.7);
Tailwind
colors: {
  custom: {
    50: '#8f5da7',
    500: '#5c1682',
    950: '#000000',
  },
}
SCSS
$custom: #5c1682;
$custom-light: #8f5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1682",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 130
  },
  "hsl": {
    "h": 278.889,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37661,
    "c": 0.16819,
    "h": 309.7
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#5C1682
secondary
#68B73D
accent
#EE3A79
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1682

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

Preview Lab → · Contrast checker → · Palette generator →

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