#5C148A#5C148A

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

Color values

HEX#5C148A
RGBrgb(92, 20, 138)
HSLhsl(277, 75%, 31%)
HSVhsv(277, 86%, 54%)
CMYKcmyk(33.3%, 85.5%, 0%, 45.9%)
CIE-LABlab(25.60, 50.70, -49.83)
CIE-LCHlch(25.60, 71.09, 315.49°)
OKLaboklab(38.19% 0.1067 -0.1419)
OKLCHoklch(38.19% 0.178 306.9)
XYZxyz(9.2502, 4.6107, 24.4425)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C148A #428A14
analogous
#21148A #5C148A #8A147D
triadic
#5C148A #8A5C14 #148A5C
tetradic
#5C148A #8A2114 #428A14 #147D8A
square
#5C148A #8A2114 #428A14 #147D8A
split-complementary
#5C148A #7D8A14 #148A21
monochromatic
#15051F #380C55 #5C148A #801CBF #9F36E2

Accessibility & contrast

On white

10.92
#5C148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C148A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C148A#FFFFFF#000000##FFFFFF
##5C148A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c148a;
/* rgb */ color: rgb(92, 20, 138);
/* oklch */ color: oklch(38.2% 0.178 306.9);
Tailwind
colors: {
  custom: {
    50: '#8f5dad',
    500: '#5c148a',
    950: '#000000',
  },
}
SCSS
$custom: #5c148a;
$custom-light: #8f5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c148a",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 276.61,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38188,
    "c": 0.17753,
    "h": 306.9
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#5C148A
secondary
#6FBE3C
accent
#F1367F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C148A

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

Preview Lab → · Contrast checker → · Palette generator →

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