#4C1579#4C1579

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

Color values

HEX#4C1579
RGBrgb(76, 21, 121)
HSLhsl(273, 70%, 28%)
HSVhsv(273, 83%, 47%)
CMYKcmyk(37.2%, 82.6%, 0%, 52.5%)
CIE-LABlab(21.77, 43.71, -45.44)
CIE-LCHlch(21.77, 63.05, 313.89°)
OKLaboklab(34.56% 0.087 -0.1296)
OKLCHoklch(34.56% 0.156 303.9)
XYZxyz(6.6990, 3.4533, 18.3991)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1579 #427915
analogous
#1A1579 #4C1579 #791574
triadic
#4C1579 #794C15 #15794C
tetradic
#4C1579 #791A15 #427915 #157479
square
#4C1579 #791A15 #427915 #157479
split-complementary
#4C1579 #747915 #15791A
monochromatic
#10051A #2B0C45 #4C1579 #6D1EAD #8D2EDB

Accessibility & contrast

On white

12.42
#4C1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4C1579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1579
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1579#FFFFFF#000000##FFFFFF
##4C15791.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.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: #4c1579;
/* rgb */ color: rgb(76, 21, 121);
/* oklch */ color: oklch(34.6% 0.156 303.9);
Tailwind
colors: {
  custom: {
    50: '#835aa1',
    500: '#4c1579',
    950: '#000000',
  },
}
SCSS
$custom: #4c1579;
$custom-light: #835aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1579",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 273,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3456,
    "c": 0.15609,
    "h": 303.9
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#4C1579
secondary
#6FAF3B
accent
#ED3B8B
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1579

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

Preview Lab → · Contrast checker → · Palette generator →

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