#4C1576#4C1576

#4C1576 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.153 H 305.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4C1576
RGBrgb(76, 21, 118)
HSLhsl(274, 70%, 27%)
HSVhsv(274, 82%, 46%)
CMYKcmyk(35.6%, 82.2%, 0%, 53.7%)
CIE-LABlab(21.51, 42.98, -43.96)
CIE-LCHlch(21.51, 61.48, 314.36°)
OKLaboklab(34.29% 0.0879 -0.1252)
OKLCHoklch(34.29% 0.153 305)
XYZxyz(6.5179, 3.3809, 17.4452)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1576 #3F7615
analogous
#1C1576 #4C1576 #76156F
triadic
#4C1576 #764C15 #15764C
tetradic
#4C1576 #761C15 #3F7615 #156F76
square
#4C1576 #761C15 #3F7615 #156F76
split-complementary
#4C1576 #6F7615 #15761C
monochromatic
#11051A #2B0C42 #4C1576 #6D1EAA #8E2CD9

Accessibility & contrast

On white

12.53
#4C1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4C1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1576
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1576#FFFFFF#000000##FFFFFF
##4C15761.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#442F46
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c1576;
/* rgb */ color: rgb(76, 21, 118);
/* oklch */ color: oklch(34.3% 0.153 305.0);
Tailwind
colors: {
  custom: {
    50: '#835a9e',
    500: '#4c1576',
    950: '#000000',
  },
}
SCSS
$custom: #4c1576;
$custom-light: #835a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1576",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 274.021,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34292,
    "c": 0.15299,
    "h": 305
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#4C1576
secondary
#6CAC3B
accent
#ED3B88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1576

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

Preview Lab → · Contrast checker → · Palette generator →

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