#4C176A#4C176A

#4C176A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.138 H 310.0°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4C176A
RGBrgb(76, 23, 106)
HSLhsl(278, 64%, 25%)
HSVhsv(278, 78%, 42%)
CMYKcmyk(28.3%, 78.3%, 0%, 58.4%)
CIE-LABlab(20.79, 39.26, -37.37)
CIE-LCHlch(20.79, 54.20, 316.42°)
OKLaboklab(33.47% 0.0888 -0.1059)
OKLCHoklch(33.47% 0.138 310)
XYZxyz(5.8879, 3.1900, 13.9384)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C176A #356A17
analogous
#22176A #4C176A #6A175E
triadic
#4C176A #6A4C17 #176A4C
tetradic
#4C176A #6A2217 #356A17 #175E6A
square
#4C176A #6A2217 #356A17 #175E6A
split-complementary
#4C176A #5E6A17 #176A22
monochromatic
#120519 #280C38 #4C176A #70229C #942DCF

Accessibility & contrast

On white

12.82
#4C176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4C176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C176A
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C176A#FFFFFF#000000##FFFFFF
##4C176A1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#043368
Tritanopia (blue-blind)
#482A3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c176a;
/* rgb */ color: rgb(76, 23, 106);
/* oklch */ color: oklch(33.5% 0.138 310.0);
Tailwind
colors: {
  custom: {
    50: '#825a95',
    500: '#4c176a',
    950: '#000000',
  },
}
SCSS
$custom: #4c176a;
$custom-light: #825a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4c176a",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 278.313,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33471,
    "c": 0.13822,
    "h": 310
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#4C176A
secondary
#61A03D
accent
#E7407D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C176A

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

Preview Lab → · Contrast checker → · Palette generator →

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