#5C188E#5C188E

#5C188E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.178 H 305.2°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5C188E
RGBrgb(92, 24, 142)
HSLhsl(275, 71%, 33%)
HSVhsv(275, 83%, 56%)
CMYKcmyk(35.2%, 83.1%, 0%, 44.3%)
CIE-LABlab(26.39, 50.29, -51.02)
CIE-LCHlch(26.39, 71.64, 314.59°)
OKLaboklab(38.85% 0.1025 -0.1454)
OKLCHoklch(38.85% 0.178 305.2)
XYZxyz(9.6216, 4.8816, 26.0213)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C188E #4A8E18
analogous
#21188E #5C188E #8E1885
triadic
#5C188E #8E5C18 #188E5C
tetradic
#5C188E #8E2118 #4A8E18 #18858E
square
#5C188E #8E2118 #4A8E18 #18858E
split-complementary
#5C188E #858E18 #188E21
monochromatic
#180625 #3A0F5A #5C188E #7E21C2 #9C41DF

Accessibility & contrast

On white

10.63
#5C188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5C188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C188E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C188E#FFFFFF#000000##FFFFFF
##5C188E1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#523854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c188e;
/* rgb */ color: rgb(92, 24, 142);
/* oklch */ color: oklch(38.9% 0.178 305.2);
Tailwind
colors: {
  custom: {
    50: '#905fb0',
    500: '#5c188e',
    950: '#000000',
  },
}
SCSS
$custom: #5c188e;
$custom-light: #905fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c188e",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 274.576,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38851,
    "c": 0.17794,
    "h": 305.2
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#5C188E
secondary
#77C042
accent
#EE3A86
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C188E

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

Preview Lab → · Contrast checker → · Palette generator →

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