#5C188A#5C188A

#5C188A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.174 H 306.6°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5C188A
RGBrgb(92, 24, 138)
HSLhsl(276, 70%, 32%)
HSVhsv(276, 83%, 54%)
CMYKcmyk(33.3%, 82.6%, 0%, 45.9%)
CIE-LABlab(26.05, 49.37, -49.09)
CIE-LCHlch(26.05, 69.62, 315.16°)
OKLaboklab(38.5% 0.1037 -0.1398)
OKLCHoklch(38.5% 0.174 306.6)
XYZxyz(9.3267, 4.7637, 24.4680)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C188A #468A18
analogous
#23188A #5C188A #8A187F
triadic
#5C188A #8A5C18 #188A5C
tetradic
#5C188A #8A2318 #468A18 #187F8A
square
#5C188A #8A2318 #468A18 #187F8A
split-complementary
#5C188A #7F8A18 #188A23
monochromatic
#160622 #390F56 #5C188A #7F21BE #9E3FDE

Accessibility & contrast

On white

10.75
#5C188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5C188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C188A
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C188A#FFFFFF#000000##FFFFFF
##5C188A1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#543752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c188a;
/* rgb */ color: rgb(92, 24, 138);
/* oklch */ color: oklch(38.5% 0.174 306.6);
Tailwind
colors: {
  custom: {
    50: '#8f5fad',
    500: '#5c188a',
    950: '#000000',
  },
}
SCSS
$custom: #5c188a;
$custom-light: #8f5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c188a",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 275.789,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38504,
    "c": 0.17404,
    "h": 306.6
  },
  "luminance": 0.04764
}

Semantic roles & 50–950 ramp

primary
#5C188A
secondary
#73BD40
accent
#ED3B83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C188A

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

Preview Lab → · Contrast checker → · Palette generator →

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