#5C198D#5C198D

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

Color values

HEX#5C198D
RGBrgb(92, 25, 141)
HSLhsl(275, 70%, 33%)
HSVhsv(275, 82%, 55%)
CMYKcmyk(34.8%, 82.3%, 0%, 44.7%)
CIE-LABlab(26.43, 49.71, -50.34)
CIE-LCHlch(26.43, 70.75, 314.64°)
OKLaboklab(38.85% 0.1021 -0.1434)
OKLCHoklch(38.85% 0.176 305.4)
XYZxyz(9.5679, 4.8937, 25.6347)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C198D #4A8D19
analogous
#22198D #5C198D #8D1984
triadic
#5C198D #8D5C19 #198D5C
tetradic
#5C198D #8D2219 #4A8D19 #19848D
square
#5C198D #8D2219 #4A8D19 #19848D
split-complementary
#5C198D #848D19 #198D22
monochromatic
#180725 #3A1059 #5C198D #7E22C1 #9C43DE

Accessibility & contrast

On white

10.61
#5C198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C198D
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C198D#FFFFFF#000000##FFFFFF
##5C198D1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#533854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c198d;
/* rgb */ color: rgb(92, 25, 141);
/* oklch */ color: oklch(38.8% 0.176 305.4);
Tailwind
colors: {
  custom: {
    50: '#905faf',
    500: '#5c198d',
    950: '#000000',
  },
}
SCSS
$custom: #5c198d;
$custom-light: #905faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c198d",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 274.655,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38848,
    "c": 0.17605,
    "h": 305.4
  },
  "luminance": 0.04894
}

Semantic roles & 50–950 ramp

primary
#5C198D
secondary
#77BF43
accent
#ED3B86
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C198D

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

Preview Lab → · Contrast checker → · Palette generator →

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