#4C176D#4C176D

#4C176D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.141 H 308.6°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4C176D
RGBrgb(76, 23, 109)
HSLhsl(277, 65%, 26%)
HSVhsv(277, 79%, 43%)
CMYKcmyk(30.3%, 78.9%, 0%, 57.3%)
CIE-LABlab(21.03, 39.98, -38.93)
CIE-LCHlch(21.03, 55.80, 315.77°)
OKLaboklab(33.72% 0.0882 -0.1105)
OKLCHoklch(33.72% 0.141 308.6)
XYZxyz(6.0466, 3.2535, 14.7745)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C176D #386D17
analogous
#21176D #4C176D #6D1763
triadic
#4C176D #6D4C17 #176D4C
tetradic
#4C176D #6D2117 #386D17 #17636D
square
#4C176D #6D2117 #386D17 #17636D
split-complementary
#4C176D #636D17 #176D21
monochromatic
#120519 #290C3A #4C176D #6F22A0 #922CD2

Accessibility & contrast

On white

12.72
#4C176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C176D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C176D#FFFFFF#000000##FFFFFF
##4C176D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#472C41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c176d;
/* rgb */ color: rgb(76, 23, 109);
/* oklch */ color: oklch(33.7% 0.141 308.6);
Tailwind
colors: {
  custom: {
    50: '#825a97',
    500: '#4c176d',
    950: '#000000',
  },
}
SCSS
$custom: #4c176d;
$custom-light: #825a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4c176d",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 276.977,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33718,
    "c": 0.14137,
    "h": 308.6
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#4C176D
secondary
#64A33D
accent
#E84080
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C176D

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

Preview Lab → · Contrast checker → · Palette generator →

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