#4C1476#4C1476

#4C1476 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.154 H 305.2°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#4C1476
RGBrgb(76, 20, 118)
HSLhsl(274, 71%, 27%)
HSVhsv(274, 83%, 46%)
CMYKcmyk(35.6%, 83.1%, 0%, 53.7%)
CIE-LABlab(21.38, 43.37, -44.17)
CIE-LCHlch(21.38, 61.90, 314.47°)
OKLaboklab(34.2% 0.0887 -0.1259)
OKLCHoklch(34.2% 0.154 305.2)
XYZxyz(6.4999, 3.3449, 17.4392)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1476 #3E7614
analogous
#1B1476 #4C1476 #76146F
triadic
#4C1476 #764C14 #14764C
tetradic
#4C1476 #761B14 #3E7614 #146F76
square
#4C1476 #761B14 #3E7614 #146F76
split-complementary
#4C1476 #6F7614 #14761B
monochromatic
#11041A #2A0B42 #4C1476 #6E1DAA #8F2ADB

Accessibility & contrast

On white

12.58
#4C1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4C1476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1476
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1476#FFFFFF#000000##FFFFFF
##4C14761.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003374
Tritanopia (blue-blind)
#442E45
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c1476;
/* rgb */ color: rgb(76, 20, 118);
/* oklch */ color: oklch(34.2% 0.154 305.2);
Tailwind
colors: {
  custom: {
    50: '#83599e',
    500: '#4c1476',
    950: '#000000',
  },
}
SCSS
$custom: #4c1476;
$custom-light: #83599e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1476",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 274.286,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34198,
    "c": 0.15399,
    "h": 305.2
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#4C1476
secondary
#6BAC3A
accent
#EE3A87
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1476

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

Preview Lab → · Contrast checker → · Palette generator →

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