#4C2076#4C2076

#4C2076 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.140 H 303.3°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4C2076
RGBrgb(76, 32, 118)
HSLhsl(271, 57%, 29%)
HSVhsv(271, 73%, 46%)
CMYKcmyk(35.6%, 72.9%, 0%, 53.7%)
CIE-LABlab(23.26, 37.99, -41.10)
CIE-LCHlch(23.26, 55.97, 312.75°)
OKLaboklab(35.53% 0.0769 -0.1169)
OKLCHoklch(35.53% 0.14 303.3)
XYZxyz(6.7663, 3.8775, 17.5280)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2076 #4A7620
analogous
#212076 #4C2076 #762075
triadic
#4C2076 #764C20 #20764C
tetradic
#4C2076 #762120 #4A7620 #207576
square
#4C2076 #762120 #4A7620 #207576
split-complementary
#4C2076 #757620 #207621
monochromatic
#100718 #2D1346 #4C2076 #6B2DA6 #8A44CC

Accessibility & contrast

On white

11.83
#4C2076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C2076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2076
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2076#FFFFFF#000000##FFFFFF
##4C20761.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#443448
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c2076;
/* rgb */ color: rgb(76, 32, 118);
/* oklch */ color: oklch(35.5% 0.140 303.3);
Tailwind
colors: {
  custom: {
    50: '#825f9e',
    500: '#4c2076',
    950: '#000000',
  },
}
SCSS
$custom: #4c2076;
$custom-light: #825f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2076",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 118
  },
  "hsl": {
    "h": 270.698,
    "s": 57.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35529,
    "c": 0.13995,
    "h": 303.3
  },
  "luminance": 0.03878
}

Semantic roles & 50–950 ramp

primary
#4C2076
secondary
#78A948
accent
#E14792
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C2076

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

Preview Lab → · Contrast checker → · Palette generator →

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