#5C1689#5C1689

#5C1689 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.175 H 307.1°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#5C1689
RGBrgb(92, 22, 137)
HSLhsl(277, 72%, 31%)
HSVhsv(277, 84%, 54%)
CMYKcmyk(32.8%, 83.9%, 0%, 46.3%)
CIE-LABlab(25.73, 49.83, -48.99)
CIE-LCHlch(25.73, 69.88, 315.48°)
OKLaboklab(38.25% 0.1055 -0.1395)
OKLCHoklch(38.25% 0.175 307.1)
XYZxyz(9.2149, 4.6554, 24.0752)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1689 #438916
analogous
#231689 #5C1689 #89167C
triadic
#5C1689 #895C16 #16895C
tetradic
#5C1689 #892316 #438916 #167C89
square
#5C1689 #892316 #438916 #167C89
split-complementary
#5C1689 #7C8916 #168923
monochromatic
#150520 #390E54 #5C1689 #7F1EBE #9F3ADF

Accessibility & contrast

On white

10.88
#5C1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1689
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1689#FFFFFF#000000##FFFFFF
##5C16891.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#543551
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c1689;
/* rgb */ color: rgb(92, 22, 137);
/* oklch */ color: oklch(38.3% 0.175 307.1);
Tailwind
colors: {
  custom: {
    50: '#8f5eac',
    500: '#5c1689',
    950: '#000000',
  },
}
SCSS
$custom: #5c1689;
$custom-light: #8f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1689",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 276.522,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38254,
    "c": 0.17489,
    "h": 307.1
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#5C1689
secondary
#70BD3E
accent
#EF3980
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1689

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

Preview Lab → · Contrast checker → · Palette generator →

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