#5C118C#5C118C

#5C118C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.182 H 306.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#5C118C
RGBrgb(92, 17, 140)
HSLhsl(277, 78%, 31%)
HSVhsv(277, 88%, 55%)
CMYKcmyk(34.3%, 87.9%, 0%, 45.1%)
CIE-LABlab(25.47, 52.03, -51.28)
CIE-LCHlch(25.47, 73.05, 315.41°)
OKLaboklab(38.16% 0.108 -0.1461)
OKLCHoklch(38.16% 0.182 306.5)
XYZxyz(9.3467, 4.5698, 25.1955)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C118C #418C11
analogous
#1E118C #5C118C #8C117E
triadic
#5C118C #8C5C11 #118C5C
tetradic
#5C118C #8C1E11 #418C11 #117E8C
square
#5C118C #8C1E11 #418C11 #117E8C
split-complementary
#5C118C #7E8C11 #118C1E
monochromatic
#14041F #380A55 #5C118C #8018C3 #A031E6

Accessibility & contrast

On white

10.97
#5C118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5C118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C118C
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C118C#FFFFFF#000000##FFFFFF
##5C118C1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#533552
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c118c;
/* rgb */ color: rgb(92, 17, 140);
/* oklch */ color: oklch(38.2% 0.182 306.5);
Tailwind
colors: {
  custom: {
    50: '#905caf',
    500: '#5c118c',
    950: '#000000',
  },
}
SCSS
$custom: #5c118c;
$custom-light: #905caf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c118c",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 276.585,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38157,
    "c": 0.1817,
    "h": 306.5
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#5C118C
secondary
#6DC138
accent
#F5337F
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C118C

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

Preview Lab → · Contrast checker → · Palette generator →

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