#5C189F#5C189F

#5C189F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.4% C 0.195 H 299.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5C189F
RGBrgb(92, 24, 159)
HSLhsl(270, 74%, 36%)
HSVhsv(270, 85%, 62%)
CMYKcmyk(42.1%, 84.9%, 0%, 37.6%)
CIE-LABlab(27.93, 54.28, -58.96)
CIE-LCHlch(27.93, 80.14, 312.64°)
OKLaboklab(40.39% 0.0969 -0.1687)
OKLCHoklch(40.39% 0.195 299.9)
XYZxyz(10.9967, 5.4317, 33.2632)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C189F #5B9F18
analogous
#18189F #5C189F #9F189E
triadic
#5C189F #9F5C18 #189F5C
tetradic
#5C189F #9F1818 #5B9F18 #189E9F
square
#5C189F #9F1818 #5B9F18 #189E9F
split-complementary
#5C189F #9E9F18 #189F18
monochromatic
#1E0835 #3D106A #5C189F #7B20D4 #994DE4

Accessibility & contrast

On white

10.07
#5C189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5C189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C189F
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C189F#FFFFFF#000000##FFFFFF
##5C189F1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#4C405E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c189f;
/* rgb */ color: rgb(92, 24, 159);
/* oklch */ color: oklch(40.4% 0.195 299.9);
Tailwind
colors: {
  custom: {
    50: '#9160bc',
    500: '#5c189f',
    950: '#000000',
  },
}
SCSS
$custom: #5c189f;
$custom-light: #9160bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c189f",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 270.222,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40385,
    "c": 0.19459,
    "h": 299.9
  },
  "luminance": 0.05432
}

Semantic roles & 50–950 ramp

primary
#5C189F
secondary
#89C64D
accent
#F03793
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5C189F

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

Preview Lab → · Contrast checker → · Palette generator →

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