#4C1777#4C1777

#4C1777 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.152 H 304.4°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#4C1777
RGBrgb(76, 23, 119)
HSLhsl(273, 68%, 28%)
HSVhsv(273, 81%, 47%)
CMYKcmyk(36.1%, 80.7%, 0%, 53.3%)
CIE-LABlab(21.88, 42.42, -44.00)
CIE-LCHlch(21.88, 61.12, 313.95°)
OKLaboklab(34.58% 0.0858 -0.1254)
OKLCHoklch(34.58% 0.152 304.4)
XYZxyz(6.6159, 3.4812, 17.7726)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1777 #427717
analogous
#1C1777 #4C1777 #771772
triadic
#4C1777 #774C17 #17774C
tetradic
#4C1777 #771C17 #427717 #177277
square
#4C1777 #771C17 #427717 #177277
split-complementary
#4C1777 #727717 #17771C
monochromatic
#10051A #2B0D44 #4C1777 #6D21AA #8D31D7

Accessibility & contrast

On white

12.38
#4C1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4C1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1777
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1777#FFFFFF#000000##FFFFFF
##4C17771.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#443047
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1777;
/* rgb */ color: rgb(76, 23, 119);
/* oklch */ color: oklch(34.6% 0.152 304.4);
Tailwind
colors: {
  custom: {
    50: '#835b9f',
    500: '#4c1777',
    950: '#000000',
  },
}
SCSS
$custom: #4c1777;
$custom-light: #835b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1777",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 273.125,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34576,
    "c": 0.15194,
    "h": 304.4
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#4C1777
secondary
#6FAC3E
accent
#EA3D8B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4C1777

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

Preview Lab → · Contrast checker → · Palette generator →

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