#4C1978#4C1978

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

Color values

HEX#4C1978
RGBrgb(76, 25, 120)
HSLhsl(272, 66%, 28%)
HSVhsv(272, 79%, 47%)
CMYKcmyk(36.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(22.26, 41.82, -44.01)
CIE-LCHlch(22.26, 60.71, 313.53°)
OKLaboklab(34.87% 0.0837 -0.1254)
OKLCHoklch(34.87% 0.151 303.7)
XYZxyz(6.7175, 3.5878, 18.1043)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1978 #457819
analogous
#1D1978 #4C1978 #781974
triadic
#4C1978 #784C19 #19784C
tetradic
#4C1978 #781D19 #457819 #197478
square
#4C1978 #781D19 #457819 #197478
split-complementary
#4C1978 #747819 #19781D
monochromatic
#100519 #2C0E45 #4C1978 #6C24AB #8C36D5

Accessibility & contrast

On white

12.23
#4C1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4C1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1978
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1978#FFFFFF#000000##FFFFFF
##4C19781.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1978;
/* rgb */ color: rgb(76, 25, 120);
/* oklch */ color: oklch(34.9% 0.151 303.7);
Tailwind
colors: {
  custom: {
    50: '#835ca0',
    500: '#4c1978',
    950: '#000000',
  },
}
SCSS
$custom: #4c1978;
$custom-light: #835ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1978",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 272.211,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34871,
    "c": 0.15081,
    "h": 303.7
  },
  "luminance": 0.03588
}

Semantic roles & 50–950 ramp

primary
#4C1978
secondary
#72AD40
accent
#E83F8E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4C1978

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

Preview Lab → · Contrast checker → · Palette generator →

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