#4C1176#4C1176

#4C1176 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.157 H 305.5°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#4C1176
RGBrgb(76, 17, 118)
HSLhsl(275, 75%, 26%)
HSVhsv(275, 86%, 46%)
CMYKcmyk(35.6%, 85.6%, 0%, 53.7%)
CIE-LABlab(21.00, 44.46, -44.78)
CIE-LCHlch(21.00, 63.10, 314.79°)
OKLaboklab(33.94% 0.0911 -0.1277)
OKLCHoklch(33.94% 0.157 305.5)
XYZxyz(6.4502, 3.2455, 17.4227)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1176 #3B7611
analogous
#1A1176 #4C1176 #76116E
triadic
#4C1176 #764C11 #11764C
tetradic
#4C1176 #761A11 #3B7611 #116E76
square
#4C1176 #761A11 #3B7611 #116E76
split-complementary
#4C1176 #6E7611 #11761A
monochromatic
#11041B #2A0941 #4C1176 #6E19AB #9122DF

Accessibility & contrast

On white

12.73
#4C1176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1176
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1176#FFFFFF#000000##FFFFFF
##4C11761.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#003374
Tritanopia (blue-blind)
#442D45
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c1176;
/* rgb */ color: rgb(76, 17, 118);
/* oklch */ color: oklch(33.9% 0.157 305.5);
Tailwind
colors: {
  custom: {
    50: '#83589e',
    500: '#4c1176',
    950: '#000000',
  },
}
SCSS
$custom: #4c1176;
$custom-light: #83589e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1176",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 275.05,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33938,
    "c": 0.15681,
    "h": 305.5
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#4C1176
secondary
#67AD36
accent
#F13684
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1176

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

Preview Lab → · Contrast checker → · Palette generator →

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