#4C1671#4C1671

#4C1671 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.147 H 307.0°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#4C1671
RGBrgb(76, 22, 113)
HSLhsl(276, 67%, 26%)
HSVhsv(276, 81%, 44%)
CMYKcmyk(32.7%, 80.5%, 0%, 55.7%)
CIE-LABlab(21.22, 41.37, -41.21)
CIE-LCHlch(21.22, 58.39, 315.11°)
OKLaboklab(33.95% 0.0883 -0.1172)
OKLCHoklch(33.95% 0.147 307)
XYZxyz(6.2474, 3.3026, 15.9279)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1671 #3B7116
analogous
#1F1671 #4C1671 #711669
triadic
#4C1671 #714C16 #16714C
tetradic
#4C1671 #711F16 #3B7116 #166971
square
#4C1671 #711F16 #3B7116 #166971
split-complementary
#4C1671 #697116 #16711F
monochromatic
#11051A #2A0C3E #4C1671 #6E20A4 #912CD6

Accessibility & contrast

On white

12.65
#4C1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4C1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1671
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1671#FFFFFF#000000##FFFFFF
##4C16711.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1671;
/* rgb */ color: rgb(76, 22, 113);
/* oklch */ color: oklch(34.0% 0.147 307.0);
Tailwind
colors: {
  custom: {
    50: '#825a9a',
    500: '#4c1671',
    950: '#000000',
  },
}
SCSS
$custom: #4c1671;
$custom-light: #825a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1671",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 275.604,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33953,
    "c": 0.14672,
    "h": 307
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#4C1671
secondary
#67A73C
accent
#EA3E84
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1671

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

Preview Lab → · Contrast checker → · Palette generator →

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