#4C1479#4C1479

#4C1479 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.157 H 304.0°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4C1479
RGBrgb(76, 20, 121)
HSLhsl(273, 72%, 28%)
HSVhsv(273, 83%, 47%)
CMYKcmyk(37.2%, 83.5%, 0%, 52.5%)
CIE-LABlab(21.64, 44.10, -45.66)
CIE-LCHlch(21.64, 63.47, 314.00°)
OKLaboklab(34.47% 0.0878 -0.1302)
OKLCHoklch(34.47% 0.157 304)
XYZxyz(6.6810, 3.4173, 18.3931)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1479 #417914
analogous
#191479 #4C1479 #791474
triadic
#4C1479 #794C14 #14794C
tetradic
#4C1479 #791914 #417914 #147479
square
#4C1479 #791914 #417914 #147479
split-complementary
#4C1479 #747914 #147919
monochromatic
#10041A #2B0B44 #4C1479 #6D1DAE #8D2BDC

Accessibility & contrast

On white

12.47
#4C1479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4C1479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1479
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1479#FFFFFF#000000##FFFFFF
##4C14791.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#433047
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1479;
/* rgb */ color: rgb(76, 20, 121);
/* oklch */ color: oklch(34.5% 0.157 304.0);
Tailwind
colors: {
  custom: {
    50: '#835aa1',
    500: '#4c1479',
    950: '#000000',
  },
}
SCSS
$custom: #4c1479;
$custom-light: #835aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1479",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 273.267,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34468,
    "c": 0.15707,
    "h": 304
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#4C1479
secondary
#6EAF3A
accent
#EE398A
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1479

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

Preview Lab → · Contrast checker → · Palette generator →

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