#4C176C#4C176C

#4C176C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.140 H 309.1°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#4C176C
RGBrgb(76, 23, 108)
HSLhsl(277, 65%, 26%)
HSVhsv(277, 79%, 42%)
CMYKcmyk(29.6%, 78.7%, 0%, 57.6%)
CIE-LABlab(20.95, 39.74, -38.41)
CIE-LCHlch(20.95, 55.27, 315.98°)
OKLaboklab(33.64% 0.0884 -0.109)
OKLCHoklch(33.64% 0.14 309.1)
XYZxyz(5.9931, 3.2321, 14.4926)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C176C #376C17
analogous
#22176C #4C176C #6C1761
triadic
#4C176C #6C4C17 #176C4C
tetradic
#4C176C #6C2217 #376C17 #17616C
square
#4C176C #6C2217 #376C17 #17616C
split-complementary
#4C176C #616C17 #176C22
monochromatic
#120519 #280C3A #4C176C #70229E #932CD1

Accessibility & contrast

On white

12.76
#4C176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4C176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C176C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C176C#FFFFFF#000000##FFFFFF
##4C176C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#472B40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c176c;
/* rgb */ color: rgb(76, 23, 108);
/* oklch */ color: oklch(33.6% 0.140 309.1);
Tailwind
colors: {
  custom: {
    50: '#825a97',
    500: '#4c176c',
    950: '#000000',
  },
}
SCSS
$custom: #4c176c;
$custom-light: #825a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4c176c",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 277.412,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33635,
    "c": 0.14032,
    "h": 309.1
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#4C176C
secondary
#63A23D
accent
#E8407F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C176C

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

Preview Lab → · Contrast checker → · Palette generator →

#4C176C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva