#4C1680#4C1680

#4C1680 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.162 H 301.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4C1680
RGBrgb(76, 22, 128)
HSLhsl(271, 71%, 29%)
HSVhsv(271, 83%, 50%)
CMYKcmyk(40.6%, 82.8%, 0%, 49.8%)
CIE-LABlab(22.54, 45.05, -48.63)
CIE-LCHlch(22.54, 66.30, 312.81°)
OKLaboklab(35.29% 0.084 -0.139)
OKLCHoklch(35.29% 0.162 301.1)
XYZxyz(7.1627, 3.6688, 20.7487)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1680 #4A8016
analogous
#171680 #4C1680 #80167F
triadic
#4C1680 #804C16 #16804C
tetradic
#4C1680 #801716 #4A8016 #167F80
square
#4C1680 #801716 #4A8016 #167F80
split-complementary
#4C1680 #7F8016 #168017
monochromatic
#10041A #2D0D4C #4C1680 #6B1FB4 #8A34DC

Accessibility & contrast

On white

12.11
#4C1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4C1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1680
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1680#FFFFFF#000000##FFFFFF
##4C16801.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#40334C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1680;
/* rgb */ color: rgb(76, 22, 128);
/* oklch */ color: oklch(35.3% 0.162 301.1);
Tailwind
colors: {
  custom: {
    50: '#845ba6',
    500: '#4c1680',
    950: '#000000',
  },
}
SCSS
$custom: #4c1680;
$custom-light: #845ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1680",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 270.566,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35292,
    "c": 0.16242,
    "h": 301.1
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#4C1680
secondary
#78B53D
accent
#ED3A92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1680

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

Preview Lab → · Contrast checker → · Palette generator →

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