#4C1571#4C1571

#4C1571 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.148 H 307.1°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#4C1571
RGBrgb(76, 21, 113)
HSLhsl(276, 69%, 26%)
HSVhsv(276, 81%, 44%)
CMYKcmyk(32.7%, 81.4%, 0%, 55.7%)
CIE-LABlab(21.08, 41.77, -41.44)
CIE-LCHlch(21.08, 58.84, 315.23°)
OKLaboklab(33.85% 0.0892 -0.1179)
OKLCHoklch(33.85% 0.148 307.1)
XYZxyz(6.2287, 3.2652, 15.9217)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1571 #3A7115
analogous
#1E1571 #4C1571 #711568
triadic
#4C1571 #714C15 #15714C
tetradic
#4C1571 #711E15 #3A7115 #156871
square
#4C1571 #711E15 #3A7115 #156871
split-complementary
#4C1571 #687115 #15711E
monochromatic
#11051A #290B3D #4C1571 #6F1FA5 #9129D7

Accessibility & contrast

On white

12.70
#4C1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1571
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1571#FFFFFF#000000##FFFFFF
##4C15711.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1571;
/* rgb */ color: rgb(76, 21, 113);
/* oklch */ color: oklch(33.9% 0.148 307.1);
Tailwind
colors: {
  custom: {
    50: '#825a9b',
    500: '#4c1571',
    950: '#000000',
  },
}
SCSS
$custom: #4c1571;
$custom-light: #825a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1571",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 275.87,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33854,
    "c": 0.1478,
    "h": 307.1
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#4C1571
secondary
#66A73B
accent
#EB3C83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1571

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

Preview Lab → · Contrast checker → · Palette generator →

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