#4C1670#4C1670

#4C1670 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.146 H 307.4°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#4C1670
RGBrgb(76, 22, 112)
HSLhsl(276, 67%, 26%)
HSVhsv(276, 80%, 44%)
CMYKcmyk(32.1%, 80.4%, 0%, 56.1%)
CIE-LABlab(21.13, 41.12, -40.70)
CIE-LCHlch(21.13, 57.86, 315.29°)
OKLaboklab(33.87% 0.0885 -0.1157)
OKLCHoklch(33.87% 0.146 307.4)
XYZxyz(6.1914, 3.2803, 15.6331)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1670 #3A7016
analogous
#1F1670 #4C1670 #701667
triadic
#4C1670 #704C16 #16704C
tetradic
#4C1670 #701F16 #3A7016 #166770
square
#4C1670 #701F16 #3A7016 #166770
split-complementary
#4C1670 #677016 #16701F
monochromatic
#11051A #290C3D #4C1670 #6F20A3 #912BD5

Accessibility & contrast

On white

12.68
#4C1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1670
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1670#FFFFFF#000000##FFFFFF
##4C16701.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#462D42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c1670;
/* rgb */ color: rgb(76, 22, 112);
/* oklch */ color: oklch(33.9% 0.146 307.4);
Tailwind
colors: {
  custom: {
    50: '#825a9a',
    500: '#4c1670',
    950: '#000000',
  },
}
SCSS
$custom: #4c1670;
$custom-light: #825a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1670",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 276,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33868,
    "c": 0.14567,
    "h": 307.4
  },
  "luminance": 0.0328
}

Semantic roles & 50–950 ramp

primary
#4C1670
secondary
#66A63C
accent
#EA3E83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1670

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

Preview Lab → · Contrast checker → · Palette generator →

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