#5C1685#5C1685

#5C1685 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.171 H 308.6°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#5C1685
RGBrgb(92, 22, 133)
HSLhsl(278, 72%, 30%)
HSVhsv(278, 83%, 52%)
CMYKcmyk(30.8%, 83.5%, 0%, 47.8%)
CIE-LABlab(25.39, 48.93, -47.04)
CIE-LCHlch(25.39, 67.87, 316.13°)
OKLaboklab(37.91% 0.1067 -0.1337)
OKLCHoklch(37.91% 0.171 308.6)
XYZxyz(8.9333, 4.5427, 22.5920)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1685 #3F8516
analogous
#251685 #5C1685 #851676
triadic
#5C1685 #855C16 #16855C
tetradic
#5C1685 #852516 #3F8516 #167685
square
#5C1685 #852516 #3F8516 #167685
split-complementary
#5C1685 #768516 #168525
monochromatic
#13051C #380D50 #5C1685 #801FBA #A037DE

Accessibility & contrast

On white

11.00
#5C1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5C1685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1685
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1685#FFFFFF#000000##FFFFFF
##5C16851.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#55334F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1685;
/* rgb */ color: rgb(92, 22, 133);
/* oklch */ color: oklch(37.9% 0.171 308.6);
Tailwind
colors: {
  custom: {
    50: '#8f5da9',
    500: '#5c1685',
    950: '#000000',
  },
}
SCSS
$custom: #5c1685;
$custom-light: #8f5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1685",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 277.838,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37913,
    "c": 0.17105,
    "h": 308.6
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#5C1685
secondary
#6BB93E
accent
#EE397C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1685

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

Preview Lab → · Contrast checker → · Palette generator →

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