#4C1474#4C1474

#4C1474 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.152 H 306.0°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#4C1474
RGBrgb(76, 20, 116)
HSLhsl(275, 71%, 27%)
HSVhsv(275, 83%, 45%)
CMYKcmyk(34.5%, 82.8%, 0%, 54.5%)
CIE-LABlab(21.20, 42.89, -43.18)
CIE-LCHlch(21.20, 60.86, 314.81°)
OKLaboklab(34.02% 0.0893 -0.1229)
OKLCHoklch(34.02% 0.152 306)
XYZxyz(6.3823, 3.2978, 16.8199)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1474 #3C7414
analogous
#1C1474 #4C1474 #74146C
triadic
#4C1474 #744C14 #14744C
tetradic
#4C1474 #741C14 #3C7414 #146C74
square
#4C1474 #741C14 #3C7414 #146C74
split-complementary
#4C1474 #6C7414 #14741C
monochromatic
#11051A #2A0B40 #4C1474 #6E1DA8 #9028DA

Accessibility & contrast

On white

12.65
#4C1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4C1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1474
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1474#FFFFFF#000000##FFFFFF
##4C14741.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#452D44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c1474;
/* rgb */ color: rgb(76, 20, 116);
/* oklch */ color: oklch(34.0% 0.152 306.0);
Tailwind
colors: {
  custom: {
    50: '#83599d',
    500: '#4c1474',
    950: '#000000',
  },
}
SCSS
$custom: #4c1474;
$custom-light: #83599d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1474",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 275,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34021,
    "c": 0.15194,
    "h": 306
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#4C1474
secondary
#69AA3A
accent
#ED3A85
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1474

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

Preview Lab → · Contrast checker → · Palette generator →

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