#5C188B#5C188B

#5C188B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.175 H 306.2°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5C188B
RGBrgb(92, 24, 139)
HSLhsl(275, 71%, 32%)
HSVhsv(275, 83%, 55%)
CMYKcmyk(33.8%, 82.7%, 0%, 45.5%)
CIE-LABlab(26.14, 49.60, -49.58)
CIE-LCHlch(26.14, 70.13, 315.01°)
OKLaboklab(38.59% 0.1034 -0.1412)
OKLCHoklch(38.59% 0.175 306.2)
XYZxyz(9.3994, 4.7928, 24.8510)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C188B #478B18
analogous
#22188B #5C188B #8B1881
triadic
#5C188B #8B5C18 #188B5C
tetradic
#5C188B #8B2218 #478B18 #18818B
square
#5C188B #8B2218 #478B18 #18818B
split-complementary
#5C188B #818B18 #188B22
monochromatic
#170623 #390F57 #5C188B #7F21BF #9D3FDE

Accessibility & contrast

On white

10.72
#5C188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5C188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C188B
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C188B#FFFFFF#000000##FFFFFF
##5C188B1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#533752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c188b;
/* rgb */ color: rgb(92, 24, 139);
/* oklch */ color: oklch(38.6% 0.175 306.2);
Tailwind
colors: {
  custom: {
    50: '#8f5fae',
    500: '#5c188b',
    950: '#000000',
  },
}
SCSS
$custom: #5c188b;
$custom-light: #8f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c188b",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 275.478,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3859,
    "c": 0.17502,
    "h": 306.2
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#5C188B
secondary
#74BE40
accent
#ED3A84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C188B

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

Preview Lab → · Contrast checker → · Palette generator →

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