#5C138A#5C138A

#5C138A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.178 H 307.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5C138A
RGBrgb(92, 19, 138)
HSLhsl(277, 76%, 31%)
HSVhsv(277, 86%, 54%)
CMYKcmyk(33.3%, 86.2%, 0%, 45.9%)
CIE-LABlab(25.49, 51.01, -50.00)
CIE-LCHlch(25.49, 71.43, 315.57°)
OKLaboklab(38.12% 0.1073 -0.1424)
OKLCHoklch(38.12% 0.178 307)
XYZxyz(9.2330, 4.5761, 24.4367)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C138A #418A13
analogous
#21138A #5C138A #8A137C
triadic
#5C138A #8A5C13 #138A5C
tetradic
#5C138A #8A2113 #418A13 #137C8A
square
#5C138A #8A2113 #418A13 #137C8A
split-complementary
#5C138A #7C8A13 #138A21
monochromatic
#14041E #380C54 #5C138A #801AC0 #A034E3

Accessibility & contrast

On white

10.96
#5C138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5C138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C138A
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C138A#FFFFFF#000000##FFFFFF
##5C138A1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c138a;
/* rgb */ color: rgb(92, 19, 138);
/* oklch */ color: oklch(38.1% 0.178 307.0);
Tailwind
colors: {
  custom: {
    50: '#905dad',
    500: '#5c138a',
    950: '#000000',
  },
}
SCSS
$custom: #5c138a;
$custom-light: #905dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c138a",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 276.807,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38116,
    "c": 0.17833,
    "h": 307
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

primary
#5C138A
secondary
#6DBE3A
accent
#F2357E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C138A

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

Preview Lab → · Contrast checker → · Palette generator →

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