#5C118E#5C118E

#5C118E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.184 H 305.8°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#5C118E
RGBrgb(92, 17, 142)
HSLhsl(276, 79%, 31%)
HSVhsv(276, 88%, 56%)
CMYKcmyk(35.2%, 88%, 0%, 44.3%)
CIE-LABlab(25.65, 52.47, -52.23)
CIE-LCHlch(25.65, 74.04, 315.13°)
OKLaboklab(38.34% 0.1073 -0.1489)
OKLCHoklch(38.34% 0.184 305.8)
XYZxyz(9.4955, 4.6293, 25.9792)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C118E #438E11
analogous
#1D118E #5C118E #8E1181
triadic
#5C118E #8E5C11 #118E5C
tetradic
#5C118E #8E1D11 #438E11 #11818E
square
#5C118E #8E1D11 #438E11 #11818E
split-complementary
#5C118E #818E11 #118E1D
monochromatic
#150421 #390A57 #5C118E #7F18C5 #9F33E7

Accessibility & contrast

On white

10.90
#5C118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5C118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C118E
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C118E#FFFFFF#000000##FFFFFF
##5C118E1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#533653
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c118e;
/* rgb */ color: rgb(92, 17, 142);
/* oklch */ color: oklch(38.3% 0.184 305.8);
Tailwind
colors: {
  custom: {
    50: '#905cb0',
    500: '#5c118e',
    950: '#000000',
  },
}
SCSS
$custom: #5c118e;
$custom-light: #905cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c118e",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 276,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38336,
    "c": 0.18355,
    "h": 305.8
  },
  "luminance": 0.04629
}

Semantic roles & 50–950 ramp

primary
#5C118E
secondary
#70C238
accent
#F53380
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C118E

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

Preview Lab → · Contrast checker → · Palette generator →

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