#4C1778#4C1778

#4C1778 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.153 H 304.0°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#4C1778
RGBrgb(76, 23, 120)
HSLhsl(273, 68%, 28%)
HSVhsv(273, 81%, 47%)
CMYKcmyk(36.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(21.96, 42.66, -44.49)
CIE-LCHlch(21.96, 61.64, 313.80°)
OKLaboklab(34.66% 0.0855 -0.1268)
OKLCHoklch(34.66% 0.153 304)
XYZxyz(6.6763, 3.5054, 18.0905)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1778 #437817
analogous
#1C1778 #4C1778 #781773
triadic
#4C1778 #784C17 #17784C
tetradic
#4C1778 #781C17 #437817 #177378
square
#4C1778 #781C17 #437817 #177378
split-complementary
#4C1778 #737817 #17781C
monochromatic
#10051A #2B0D45 #4C1778 #6D21AB #8C32D8

Accessibility & contrast

On white

12.35
#4C1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1778
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1778#FFFFFF#000000##FFFFFF
##4C17781.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#433047
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1778;
/* rgb */ color: rgb(76, 23, 120);
/* oklch */ color: oklch(34.7% 0.153 304.0);
Tailwind
colors: {
  custom: {
    50: '#835ba0',
    500: '#4c1778',
    950: '#000000',
  },
}
SCSS
$custom: #4c1778;
$custom-light: #835ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1778",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 272.784,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34664,
    "c": 0.153,
    "h": 304
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#4C1778
secondary
#70AD3E
accent
#EB3D8C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4C1778

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

Preview Lab → · Contrast checker → · Palette generator →

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