#5C128E#5C128E

#5C128E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.183 H 305.7°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#5C128E
RGBrgb(92, 18, 142)
HSLhsl(276, 78%, 31%)
HSVhsv(276, 87%, 56%)
CMYKcmyk(35.2%, 87.3%, 0%, 44.3%)
CIE-LABlab(25.75, 52.19, -52.08)
CIE-LCHlch(25.75, 73.73, 315.06°)
OKLaboklab(38.4% 0.1067 -0.1485)
OKLCHoklch(38.4% 0.183 305.7)
XYZxyz(9.5113, 4.6610, 25.9845)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C128E #448E12
analogous
#1E128E #5C128E #8E1282
triadic
#5C128E #8E5C12 #128E5C
tetradic
#5C128E #8E1E12 #448E12 #12828E
square
#5C128E #8E1E12 #448E12 #12828E
split-complementary
#5C128E #828E12 #128E1E
monochromatic
#160421 #390B58 #5C128E #7F19C4 #9E35E5

Accessibility & contrast

On white

10.87
#5C128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C128E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C128E#FFFFFF#000000##FFFFFF
##5C128E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.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: #5c128e;
/* rgb */ color: rgb(92, 18, 142);
/* oklch */ color: oklch(38.4% 0.183 305.7);
Tailwind
colors: {
  custom: {
    50: '#905db0',
    500: '#5c128e',
    950: '#000000',
  },
}
SCSS
$custom: #5c128e;
$custom-light: #905db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c128e",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 275.806,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38401,
    "c": 0.18284,
    "h": 305.7
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#5C128E
secondary
#71C23A
accent
#F43481
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C128E

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

Preview Lab → · Contrast checker → · Palette generator →

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