#5C188F#5C188F

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

Color values

HEX#5C188F
RGBrgb(92, 24, 143)
HSLhsl(274, 71%, 33%)
HSVhsv(274, 83%, 56%)
CMYKcmyk(35.7%, 83.2%, 0%, 43.9%)
CIE-LABlab(26.48, 50.52, -51.50)
CIE-LCHlch(26.48, 72.14, 314.45°)
OKLaboklab(38.94% 0.1022 -0.1468)
OKLCHoklch(38.94% 0.179 304.9)
XYZxyz(9.6971, 4.9118, 26.4185)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C188F #4B8F18
analogous
#21188F #5C188F #8F1886
triadic
#5C188F #8F5C18 #188F5C
tetradic
#5C188F #8F2118 #4B8F18 #18868F
square
#5C188F #8F2118 #4B8F18 #18868F
split-complementary
#5C188F #868F18 #188F21
monochromatic
#190626 #3A0F5B #5C188F #7E21C3 #9C42DF

Accessibility & contrast

On white

10.59
#5C188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C188F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C188F#FFFFFF#000000##FFFFFF
##5C188F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#523955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c188f;
/* rgb */ color: rgb(92, 24, 143);
/* oklch */ color: oklch(38.9% 0.179 304.9);
Tailwind
colors: {
  custom: {
    50: '#905fb1',
    500: '#5c188f',
    950: '#000000',
  },
}
SCSS
$custom: #5c188f;
$custom-light: #905fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c188f",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 274.286,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38938,
    "c": 0.17892,
    "h": 304.9
  },
  "luminance": 0.04912
}

Semantic roles & 50–950 ramp

primary
#5C188F
secondary
#78C043
accent
#EE3A87
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C188F

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

Preview Lab → · Contrast checker → · Palette generator →

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