#4C1676#4C1676

#4C1676 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.152 H 304.9°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4C1676
RGBrgb(76, 22, 118)
HSLhsl(274, 69%, 27%)
HSVhsv(274, 81%, 46%)
CMYKcmyk(35.6%, 81.4%, 0%, 53.7%)
CIE-LABlab(21.65, 42.58, -43.73)
CIE-LCHlch(21.65, 61.04, 314.24°)
OKLaboklab(34.39% 0.087 -0.1246)
OKLCHoklch(34.39% 0.152 304.9)
XYZxyz(6.5367, 3.4184, 17.4515)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1676 #407616
analogous
#1C1676 #4C1676 #761670
triadic
#4C1676 #764C16 #16764C
tetradic
#4C1676 #761C16 #407616 #167076
square
#4C1676 #761C16 #407616 #167076
split-complementary
#4C1676 #707616 #16761C
monochromatic
#11051A #2B0C42 #4C1676 #6D20AA #8E2ED8

Accessibility & contrast

On white

12.47
#4C1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1676
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1676#FFFFFF#000000##FFFFFF
##4C16761.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1676;
/* rgb */ color: rgb(76, 22, 118);
/* oklch */ color: oklch(34.4% 0.152 304.9);
Tailwind
colors: {
  custom: {
    50: '#835a9e',
    500: '#4c1676',
    950: '#000000',
  },
}
SCSS
$custom: #4c1676;
$custom-light: #835a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1676",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 273.75,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34388,
    "c": 0.15194,
    "h": 304.9
  },
  "luminance": 0.03418
}

Semantic roles & 50–950 ramp

primary
#4C1676
secondary
#6DAC3C
accent
#EB3C89
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1676

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

Preview Lab → · Contrast checker → · Palette generator →

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