#5C198F#5C198F

#5C198F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.178 H 304.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5C198F
RGBrgb(92, 25, 143)
HSLhsl(274, 70%, 33%)
HSVhsv(274, 83%, 56%)
CMYKcmyk(35.7%, 82.5%, 0%, 43.9%)
CIE-LABlab(26.60, 50.17, -51.30)
CIE-LCHlch(26.60, 71.76, 314.36°)
OKLaboklab(39.02% 0.1015 -0.1463)
OKLCHoklch(39.02% 0.178 304.8)
XYZxyz(9.7181, 4.9538, 26.4255)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C198F #4C8F19
analogous
#21198F #5C198F #8F1987
triadic
#5C198F #8F5C19 #198F5C
tetradic
#5C198F #8F2119 #4C8F19 #19878F
square
#5C198F #8F2119 #4C8F19 #19878F
split-complementary
#5C198F #878F19 #198F21
monochromatic
#190727 #3A105B #5C198F #7E22C3 #9C44DE

Accessibility & contrast

On white

10.55
#5C198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5C198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C198F
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C198F#FFFFFF#000000##FFFFFF
##5C198F1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.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: #5c198f;
/* rgb */ color: rgb(92, 25, 143);
/* oklch */ color: oklch(39.0% 0.178 304.8);
Tailwind
colors: {
  custom: {
    50: '#905fb1',
    500: '#5c198f',
    950: '#000000',
  },
}
SCSS
$custom: #5c198f;
$custom-light: #905fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c198f",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 274.068,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39022,
    "c": 0.17802,
    "h": 304.8
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

primary
#5C198F
secondary
#7ABF44
accent
#ED3B88
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C198F

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

Preview Lab → · Contrast checker → · Palette generator →

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