#5C197F#5C197F

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

Color values

HEX#5C197F
RGBrgb(92, 25, 127)
HSLhsl(279, 67%, 30%)
HSVhsv(279, 80%, 50%)
CMYKcmyk(27.6%, 80.3%, 0%, 50.2%)
CIE-LABlab(25.27, 46.51, -43.46)
CIE-LCHlch(25.27, 63.65, 316.94°)
OKLaboklab(37.67% 0.1057 -0.1232)
OKLCHoklch(37.67% 0.162 310.6)
XYZxyz(8.5913, 4.5031, 20.4912)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C197F #3C7F19
analogous
#29197F #5C197F #7F196F
triadic
#5C197F #7F5C19 #197F5C
tetradic
#5C197F #7F2919 #3C7F19 #196F7F
square
#5C197F #7F2919 #3C7F19 #196F7F
split-complementary
#5C197F #6F7F19 #197F29
monochromatic
#13051A #370F4C #5C197F #8123B2 #A23AD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C197F#FFFFFF#000000##FFFFFF
##5C197F1.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)
#003982
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#57324C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c197f;
/* rgb */ color: rgb(92, 25, 127);
/* oklch */ color: oklch(37.7% 0.162 310.6);
Tailwind
colors: {
  custom: {
    50: '#8e5ea5',
    500: '#5c197f',
    950: '#000000',
  },
}
SCSS
$custom: #5c197f;
$custom-light: #8e5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c197f",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 279.412,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37675,
    "c": 0.16231,
    "h": 310.6
  },
  "luminance": 0.04503
}

Semantic roles & 50–950 ramp

primary
#5C197F
secondary
#68B341
accent
#EA3E79
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C197F

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

Preview Lab → · Contrast checker → · Palette generator →

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