#4C1471#4C1471

#4C1471 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.149 H 307.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#4C1471
RGBrgb(76, 20, 113)
HSLhsl(276, 70%, 26%)
HSVhsv(276, 82%, 44%)
CMYKcmyk(32.7%, 82.3%, 0%, 55.7%)
CIE-LABlab(20.94, 42.17, -41.67)
CIE-LCHlch(20.94, 59.28, 315.34°)
OKLaboklab(33.76% 0.0901 -0.1185)
OKLCHoklch(33.76% 0.149 307.2)
XYZxyz(6.2106, 3.2291, 15.9157)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1471 #397114
analogous
#1D1471 #4C1471 #711467
triadic
#4C1471 #714C14 #14714C
tetradic
#4C1471 #711D14 #397114 #146771
square
#4C1471 #711D14 #397114 #146771
split-complementary
#4C1471 #677114 #14711D
monochromatic
#11051A #290B3D #4C1471 #6F1DA5 #9227D9

Accessibility & contrast

On white

12.76
#4C1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4C1471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1471
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1471#FFFFFF#000000##FFFFFF
##4C14711.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#462C43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1471;
/* rgb */ color: rgb(76, 20, 113);
/* oklch */ color: oklch(33.8% 0.149 307.2);
Tailwind
colors: {
  custom: {
    50: '#82599b',
    500: '#4c1471',
    950: '#000000',
  },
}
SCSS
$custom: #4c1471;
$custom-light: #82599b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1471",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 276.129,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33758,
    "c": 0.14887,
    "h": 307.2
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#4C1471
secondary
#65A739
accent
#ED3B82
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1471

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

Preview Lab → · Contrast checker → · Palette generator →

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