#5C187F#5C187F

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

Color values

HEX#5C187F
RGBrgb(92, 24, 127)
HSLhsl(280, 68%, 30%)
HSVhsv(280, 81%, 50%)
CMYKcmyk(27.6%, 81.1%, 0%, 50.2%)
CIE-LABlab(25.14, 46.88, -43.67)
CIE-LCHlch(25.14, 64.07, 317.03°)
OKLaboklab(37.58% 0.1065 -0.1238)
OKLCHoklch(37.58% 0.163 310.7)
XYZxyz(8.5703, 4.4611, 20.4842)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C187F #3B7F18
analogous
#29187F #5C187F #7F186F
triadic
#5C187F #7F5C18 #187F5C
tetradic
#5C187F #7F2918 #3B7F18 #186F7F
square
#5C187F #7F2918 #3B7F18 #186F7F
split-complementary
#5C187F #6F7F18 #187F29
monochromatic
#13051A #370E4C #5C187F #8122B2 #A338D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5c187f;
/* rgb */ color: rgb(92, 24, 127);
/* oklch */ color: oklch(37.6% 0.163 310.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ea5',
    500: '#5c187f',
    950: '#000000',
  },
}
SCSS
$custom: #5c187f;
$custom-light: #8e5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c187f",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 279.612,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37584,
    "c": 0.16335,
    "h": 310.7
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#5C187F
secondary
#67B33F
accent
#EB3D78
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C187F

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

Preview Lab → · Contrast checker → · Palette generator →

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