#5C198B#5C198B

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

Color values

HEX#5C198B
RGBrgb(92, 25, 139)
HSLhsl(275, 70%, 32%)
HSVhsv(275, 82%, 55%)
CMYKcmyk(33.8%, 82%, 0%, 45.5%)
CIE-LABlab(26.26, 49.24, -49.38)
CIE-LCHlch(26.26, 69.73, 314.92°)
OKLaboklab(38.68% 0.1026 -0.1406)
OKLCHoklch(38.68% 0.174 306.1)
XYZxyz(9.4204, 4.8347, 24.8580)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C198B #488B19
analogous
#23198B #5C198B #8B1981
triadic
#5C198B #8B5C19 #198B5C
tetradic
#5C198B #8B2319 #488B19 #19818B
square
#5C198B #8B2319 #488B19 #19818B
split-complementary
#5C198B #818B19 #198B23
monochromatic
#170623 #3A1057 #5C198B #7E22BF #9D41DD

Accessibility & contrast

On white

10.68
#5C198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C198B
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C198B#FFFFFF#000000##FFFFFF
##5C198B1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c198b;
/* rgb */ color: rgb(92, 25, 139);
/* oklch */ color: oklch(38.7% 0.174 306.1);
Tailwind
colors: {
  custom: {
    50: '#8f5fae',
    500: '#5c198b',
    950: '#000000',
  },
}
SCSS
$custom: #5c198b;
$custom-light: #8f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c198b",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 275.263,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38676,
    "c": 0.17408,
    "h": 306.1
  },
  "luminance": 0.04835
}

Semantic roles & 50–950 ramp

primary
#5C198B
secondary
#75BE42
accent
#EC3B84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C198B

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

Preview Lab → · Contrast checker → · Palette generator →

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