#4C1472#4C1472

#4C1472 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.150 H 306.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4C1472
RGBrgb(76, 20, 114)
HSLhsl(276, 70%, 26%)
HSVhsv(276, 82%, 45%)
CMYKcmyk(33.3%, 82.5%, 0%, 55.3%)
CIE-LABlab(21.03, 42.41, -42.17)
CIE-LCHlch(21.03, 59.81, 315.16°)
OKLaboklab(33.85% 0.0898 -0.12)
OKLCHoklch(33.85% 0.15 306.8)
XYZxyz(6.2672, 3.2518, 16.2138)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1472 #3A7214
analogous
#1D1472 #4C1472 #721469
triadic
#4C1472 #724C14 #14724C
tetradic
#4C1472 #721D14 #3A7214 #146972
square
#4C1472 #721D14 #3A7214 #146972
split-complementary
#4C1472 #697214 #14721D
monochromatic
#11051A #290B3E #4C1472 #6F1DA6 #9127D9

Accessibility & contrast

On white

12.72
#4C1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4C1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1472
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1472#FFFFFF#000000##FFFFFF
##4C14721.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#452C43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c1472;
/* rgb */ color: rgb(76, 20, 114);
/* oklch */ color: oklch(33.8% 0.150 306.8);
Tailwind
colors: {
  custom: {
    50: '#83599b',
    500: '#4c1472',
    950: '#000000',
  },
}
SCSS
$custom: #4c1472;
$custom-light: #83599b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1472",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 275.745,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33845,
    "c": 0.14989,
    "h": 306.8
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#4C1472
secondary
#66A839
accent
#ED3B83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1472

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

Preview Lab → · Contrast checker → · Palette generator →

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