#4C1E71#4C1E71

#4C1E71 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.137 H 305.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4C1E71
RGBrgb(76, 30, 113)
HSLhsl(273, 58%, 28%)
HSVhsv(273, 73%, 44%)
CMYKcmyk(32.7%, 73.5%, 0%, 55.7%)
CIE-LABlab(22.50, 37.71, -39.12)
CIE-LCHlch(22.50, 54.34, 313.94°)
OKLaboklab(34.86% 0.08 -0.1111)
OKLCHoklch(34.86% 0.137 305.7)
XYZxyz(6.4247, 3.6574, 15.9871)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E71 #43711E
analogous
#221E71 #4C1E71 #711E6C
triadic
#4C1E71 #714C1E #1E714C
tetradic
#4C1E71 #71221E #43711E #1E6C71
square
#4C1E71 #71221E #43711E #1E6C71
split-complementary
#4C1E71 #6C711E #1E7122
monochromatic
#100618 #2B1141 #4C1E71 #6D2BA1 #8C3ECC

Accessibility & contrast

On white

12.13
#4C1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1E71
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E71#FFFFFF#000000##FFFFFF
##4C1E711.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1e71;
/* rgb */ color: rgb(76, 30, 113);
/* oklch */ color: oklch(34.9% 0.137 305.7);
Tailwind
colors: {
  custom: {
    50: '#825e9a',
    500: '#4c1e71',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e71;
$custom-light: #825e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e71",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 273.253,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34864,
    "c": 0.13689,
    "h": 305.7
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#4C1E71
secondary
#70A546
accent
#E1478C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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