#5C128A#5C128A

#5C128A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.179 H 307.1°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#5C128A
RGBrgb(92, 18, 138)
HSLhsl(277, 77%, 31%)
HSVhsv(277, 87%, 54%)
CMYKcmyk(33.3%, 87%, 0%, 45.9%)
CIE-LABlab(25.39, 51.30, -50.17)
CIE-LCHlch(25.39, 71.75, 315.64°)
OKLaboklab(38.05% 0.108 -0.1429)
OKLCHoklch(38.05% 0.179 307.1)
XYZxyz(9.2164, 4.5430, 24.4312)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C128A #408A12
analogous
#20128A #5C128A #8A127C
triadic
#5C128A #8A5C12 #128A5C
tetradic
#5C128A #8A2012 #408A12 #127C8A
square
#5C128A #8A2012 #408A12 #127C8A
split-complementary
#5C128A #7C8A12 #128A20
monochromatic
#14041E #380B54 #5C128A #8019C0 #A032E4

Accessibility & contrast

On white

11.00
#5C128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C128A
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C128A#FFFFFF#000000##FFFFFF
##5C128A1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#543451
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c128a;
/* rgb */ color: rgb(92, 18, 138);
/* oklch */ color: oklch(38.0% 0.179 307.1);
Tailwind
colors: {
  custom: {
    50: '#905cad',
    500: '#5c128a',
    950: '#000000',
  },
}
SCSS
$custom: #5c128a;
$custom-light: #905cad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c128a",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 277,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38047,
    "c": 0.17911,
    "h": 307.1
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#5C128A
secondary
#6CBF39
accent
#F3347E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C128A

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

Preview Lab → · Contrast checker → · Palette generator →

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