#4C1879#4C1879

#4C1879 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.153 H 303.5°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4C1879
RGBrgb(76, 24, 121)
HSLhsl(272, 67%, 28%)
HSVhsv(272, 80%, 47%)
CMYKcmyk(37.2%, 80.2%, 0%, 52.5%)
CIE-LABlab(22.20, 42.49, -44.75)
CIE-LCHlch(22.20, 61.72, 313.52°)
OKLaboklab(34.85% 0.0844 -0.1276)
OKLCHoklch(34.85% 0.153 303.5)
XYZxyz(6.7575, 3.5702, 18.4186)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1879 #457918
analogous
#1B1879 #4C1879 #791875
triadic
#4C1879 #794C18 #18794C
tetradic
#4C1879 #791B18 #457918 #187579
square
#4C1879 #791B18 #457918 #187579
split-complementary
#4C1879 #757918 #18791B
monochromatic
#10051A #2C0E46 #4C1879 #6C22AC #8C35D7

Accessibility & contrast

On white

12.25
#4C1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1879
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1879#FFFFFF#000000##FFFFFF
##4C18791.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#433148
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1879;
/* rgb */ color: rgb(76, 24, 121);
/* oklch */ color: oklch(34.9% 0.153 303.5);
Tailwind
colors: {
  custom: {
    50: '#835ba0',
    500: '#4c1879',
    950: '#000000',
  },
}
SCSS
$custom: #4c1879;
$custom-light: #835ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1879",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 272.165,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34854,
    "c": 0.15298,
    "h": 303.5
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#4C1879
secondary
#72AE3F
accent
#EA3E8E
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1879

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

Preview Lab → · Contrast checker → · Palette generator →

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