#4C1172#4C1172

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

Color values

HEX#4C1172
RGBrgb(76, 17, 114)
HSLhsl(276, 74%, 26%)
HSVhsv(276, 85%, 45%)
CMYKcmyk(33.3%, 85.1%, 0%, 55.3%)
CIE-LABlab(20.64, 43.51, -42.79)
CIE-LCHlch(20.64, 61.03, 315.48°)
OKLaboklab(33.58% 0.0923 -0.1218)
OKLCHoklch(33.58% 0.153 307.2)
XYZxyz(6.2175, 3.1524, 16.1973)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1172 #377211
analogous
#1B1172 #4C1172 #721167
triadic
#4C1172 #724C11 #11724C
tetradic
#4C1172 #721B11 #377211 #116772
square
#4C1172 #721B11 #377211 #116772
split-complementary
#4C1172 #677211 #11721B
monochromatic
#12041B #28093D #4C1172 #7019A7 #9321DD

Accessibility & contrast

On white

12.88
#4C1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1172
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1172#FFFFFF#000000##FFFFFF
##4C11721.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1172;
/* rgb */ color: rgb(76, 17, 114);
/* oklch */ color: oklch(33.6% 0.153 307.2);
Tailwind
colors: {
  custom: {
    50: '#83589b',
    500: '#4c1172',
    950: '#000000',
  },
}
SCSS
$custom: #4c1172;
$custom-light: #83589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1172",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 276.495,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33579,
    "c": 0.15282,
    "h": 307.2
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#4C1172
secondary
#63A936
accent
#F13780
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1172

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

Preview Lab → · Contrast checker → · Palette generator →

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