#4C177A#4C177A

#4C177A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.155 H 303.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4C177A
RGBrgb(76, 23, 122)
HSLhsl(272, 68%, 28%)
HSVhsv(272, 81%, 48%)
CMYKcmyk(37.7%, 81.1%, 0%, 52.2%)
CIE-LABlab(22.14, 43.16, -45.48)
CIE-LCHlch(22.14, 62.70, 313.50°)
OKLaboklab(34.84% 0.085 -0.1297)
OKLCHoklch(34.84% 0.155 303.2)
XYZxyz(6.7989, 3.5544, 18.7365)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C177A #457A17
analogous
#1A177A #4C177A #7A1776
triadic
#4C177A #7A4C17 #177A4C
tetradic
#4C177A #7A1A17 #457A17 #17767A
square
#4C177A #7A1A17 #457A17 #17767A
split-complementary
#4C177A #767A17 #177A1A
monochromatic
#10051A #2C0D47 #4C177A #6C21AD #8C33D9

Accessibility & contrast

On white

12.27
#4C177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4C177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C177A
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C177A#FFFFFF#000000##FFFFFF
##4C177A1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#423148
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c177a;
/* rgb */ color: rgb(76, 23, 122);
/* oklch */ color: oklch(34.8% 0.155 303.2);
Tailwind
colors: {
  custom: {
    50: '#835ba1',
    500: '#4c177a',
    950: '#000000',
  },
}
SCSS
$custom: #4c177a;
$custom-light: #835ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c177a",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 272.121,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34842,
    "c": 0.1551,
    "h": 303.2
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#4C177A
secondary
#72AF3E
accent
#EB3D8E
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C177A

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

Preview Lab → · Contrast checker → · Palette generator →

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