#5C188D#5C188D

#5C188D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.177 H 305.5°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#5C188D
RGBrgb(92, 24, 141)
HSLhsl(275, 71%, 32%)
HSVhsv(275, 83%, 55%)
CMYKcmyk(34.8%, 83%, 0%, 44.7%)
CIE-LABlab(26.31, 50.06, -50.54)
CIE-LCHlch(26.31, 71.14, 314.73°)
OKLaboklab(38.76% 0.1028 -0.144)
OKLCHoklch(38.76% 0.177 305.5)
XYZxyz(9.5469, 4.8517, 25.6277)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C188D #498D18
analogous
#22188D #5C188D #8D1883
triadic
#5C188D #8D5C18 #188D5C
tetradic
#5C188D #8D2218 #498D18 #18838D
square
#5C188D #8D2218 #498D18 #18838D
split-complementary
#5C188D #838D18 #188D22
monochromatic
#180624 #3A0F59 #5C188D #7E21C1 #9D41DF

Accessibility & contrast

On white

10.66
#5C188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5C188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C188D
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C188D#FFFFFF#000000##FFFFFF
##5C188D1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#533854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c188d;
/* rgb */ color: rgb(92, 24, 141);
/* oklch */ color: oklch(38.8% 0.177 305.5);
Tailwind
colors: {
  custom: {
    50: '#905faf',
    500: '#5c188d',
    950: '#000000',
  },
}
SCSS
$custom: #5c188d;
$custom-light: #905faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c188d",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 274.872,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38764,
    "c": 0.17697,
    "h": 305.5
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#5C188D
secondary
#76BF42
accent
#EE3A85
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C188D

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

Preview Lab → · Contrast checker → · Palette generator →

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