#4C1D71#4C1D71

#4C1D71 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.138 H 305.9°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#4C1D71
RGBrgb(76, 29, 113)
HSLhsl(274, 59%, 28%)
HSVhsv(274, 74%, 44%)
CMYKcmyk(32.7%, 74.3%, 0%, 55.7%)
CIE-LABlab(22.33, 38.20, -39.41)
CIE-LCHlch(22.33, 54.89, 314.11°)
OKLaboklab(34.74% 0.0811 -0.1119)
OKLCHoklch(34.74% 0.138 305.9)
XYZxyz(6.3998, 3.6075, 15.9788)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D71 #42711D
analogous
#221D71 #4C1D71 #711D6C
triadic
#4C1D71 #714C1D #1D714C
tetradic
#4C1D71 #71221D #42711D #1D6C71
square
#4C1D71 #71221D #42711D #1D6C71
split-complementary
#4C1D71 #6C711D #1D7122
monochromatic
#100618 #2B1140 #4C1D71 #6D29A2 #8D3CCD

Accessibility & contrast

On white

12.20
#4C1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4C1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D71
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D71#FFFFFF#000000##FFFFFF
##4C1D711.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#453145
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c1d71;
/* rgb */ color: rgb(76, 29, 113);
/* oklch */ color: oklch(34.7% 0.138 305.9);
Tailwind
colors: {
  custom: {
    50: '#825d9a',
    500: '#4c1d71',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d71;
$custom-light: #825d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d71",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 273.571,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34739,
    "c": 0.13822,
    "h": 305.9
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#4C1D71
secondary
#6FA544
accent
#E2458B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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