#4C1371#4C1371

#4C1371 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.150 H 307.4°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#4C1371
RGBrgb(76, 19, 113)
HSLhsl(276, 71%, 26%)
HSVhsv(276, 83%, 44%)
CMYKcmyk(32.7%, 83.2%, 0%, 55.7%)
CIE-LABlab(20.81, 42.55, -41.88)
CIE-LCHlch(20.81, 59.70, 315.46°)
OKLaboklab(33.67% 0.091 -0.1191)
OKLCHoklch(33.67% 0.15 307.4)
XYZxyz(6.1934, 3.1946, 15.9099)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1371 #387113
analogous
#1D1371 #4C1371 #711367
triadic
#4C1371 #714C13 #13714C
tetradic
#4C1371 #711D13 #387113 #136771
square
#4C1371 #711D13 #387113 #136771
split-complementary
#4C1371 #677113 #13711D
monochromatic
#12041A #290A3D #4C1371 #6F1CA5 #9225DA

Accessibility & contrast

On white

12.81
#4C1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4C1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1371
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1371#FFFFFF#000000##FFFFFF
##4C13711.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#00326F
Tritanopia (blue-blind)
#462C42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1371;
/* rgb */ color: rgb(76, 19, 113);
/* oklch */ color: oklch(33.7% 0.150 307.4);
Tailwind
colors: {
  custom: {
    50: '#83599b',
    500: '#4c1371',
    950: '#000000',
  },
}
SCSS
$custom: #4c1371;
$custom-light: #83599b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1371",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 276.383,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33666,
    "c": 0.14989,
    "h": 307.4
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#4C1371
secondary
#64A838
accent
#EE3A81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1371

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

Preview Lab → · Contrast checker → · Palette generator →

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