#4C1878#4C1878

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

Color values

HEX#4C1878
RGBrgb(76, 24, 120)
HSLhsl(273, 67%, 28%)
HSVhsv(273, 80%, 47%)
CMYKcmyk(36.7%, 80%, 0%, 52.9%)
CIE-LABlab(22.11, 42.25, -44.26)
CIE-LCHlch(22.11, 61.18, 313.67°)
OKLaboklab(34.77% 0.0846 -0.1262)
OKLCHoklch(34.77% 0.152 303.9)
XYZxyz(6.6965, 3.5458, 18.0973)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1878 #447818
analogous
#1C1878 #4C1878 #781874
triadic
#4C1878 #784C18 #18784C
tetradic
#4C1878 #781C18 #447818 #187478
square
#4C1878 #781C18 #447818 #187478
split-complementary
#4C1878 #747818 #18781C
monochromatic
#10051A #2C0E45 #4C1878 #6C22AB #8C34D6

Accessibility & contrast

On white

12.29
#4C1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1878
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1878#FFFFFF#000000##FFFFFF
##4C18781.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#433147
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1878;
/* rgb */ color: rgb(76, 24, 120);
/* oklch */ color: oklch(34.8% 0.152 303.9);
Tailwind
colors: {
  custom: {
    50: '#835ba0',
    500: '#4c1878',
    950: '#000000',
  },
}
SCSS
$custom: #4c1878;
$custom-light: #835ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1878",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 272.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34766,
    "c": 0.15192,
    "h": 303.9
  },
  "luminance": 0.03546
}

Semantic roles & 50–950 ramp

primary
#4C1878
secondary
#71AD3F
accent
#EA3E8D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4C1878

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

Preview Lab → · Contrast checker → · Palette generator →

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