#4C1572#4C1572

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

Color values

HEX#4C1572
RGBrgb(76, 21, 114)
HSLhsl(275, 69%, 26%)
HSVhsv(275, 82%, 45%)
CMYKcmyk(33.3%, 81.6%, 0%, 55.3%)
CIE-LABlab(21.16, 42.01, -41.95)
CIE-LCHlch(21.16, 59.37, 315.04°)
OKLaboklab(33.94% 0.0889 -0.1193)
OKLCHoklch(33.94% 0.149 306.7)
XYZxyz(6.2853, 3.2878, 16.2198)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1572 #3B7215
analogous
#1E1572 #4C1572 #72156A
triadic
#4C1572 #724C15 #15724C
tetradic
#4C1572 #721E15 #3B7215 #156A72
square
#4C1572 #721E15 #3B7215 #156A72
split-complementary
#4C1572 #6A7215 #15721E
monochromatic
#11051A #2A0B3E #4C1572 #6E1FA6 #912AD8

Accessibility & contrast

On white

12.67
#4C1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1572
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1572#FFFFFF#000000##FFFFFF
##4C15721.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1572;
/* rgb */ color: rgb(76, 21, 114);
/* oklch */ color: oklch(33.9% 0.149 306.7);
Tailwind
colors: {
  custom: {
    50: '#825a9b',
    500: '#4c1572',
    950: '#000000',
  },
}
SCSS
$custom: #4c1572;
$custom-light: #825a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1572",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 275.484,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33941,
    "c": 0.14884,
    "h": 306.7
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#4C1572
secondary
#67A83B
accent
#EC3C84
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1572

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

Preview Lab → · Contrast checker → · Palette generator →

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