#4C1372#4C1372

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

Color values

HEX#4C1372
RGBrgb(76, 19, 114)
HSLhsl(276, 71%, 26%)
HSVhsv(276, 83%, 45%)
CMYKcmyk(33.3%, 83.3%, 0%, 55.3%)
CIE-LABlab(20.89, 42.79, -42.39)
CIE-LCHlch(20.89, 60.23, 315.27°)
OKLaboklab(33.75% 0.0907 -0.1206)
OKLCHoklch(33.75% 0.151 306.9)
XYZxyz(6.2500, 3.2172, 16.2081)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1372 #397213
analogous
#1C1372 #4C1372 #721368
triadic
#4C1372 #724C13 #13724C
tetradic
#4C1372 #721C13 #397213 #136872
square
#4C1372 #721C13 #397213 #136872
split-complementary
#4C1372 #687213 #13721C
monochromatic
#11041A #290A3E #4C1372 #6F1CA6 #9225DB

Accessibility & contrast

On white

12.78
#4C1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1372
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1372#FFFFFF#000000##FFFFFF
##4C13721.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#452C43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1372;
/* rgb */ color: rgb(76, 19, 114);
/* oklch */ color: oklch(33.8% 0.151 306.9);
Tailwind
colors: {
  custom: {
    50: '#83599b',
    500: '#4c1372',
    950: '#000000',
  },
}
SCSS
$custom: #4c1372;
$custom-light: #83599b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1372",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 276,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33753,
    "c": 0.1509,
    "h": 306.9
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#4C1372
secondary
#65A938
accent
#EE3A82
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1372

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

Preview Lab → · Contrast checker → · Palette generator →

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