#4C1E72#4C1E72

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

Color values

HEX#4C1E72
RGBrgb(76, 30, 114)
HSLhsl(273, 58%, 28%)
HSVhsv(273, 74%, 45%)
CMYKcmyk(33.3%, 73.7%, 0%, 55.3%)
CIE-LABlab(22.58, 37.96, -39.64)
CIE-LCHlch(22.58, 54.89, 313.76°)
OKLaboklab(34.95% 0.0798 -0.1126)
OKLCHoklch(34.95% 0.138 305.3)
XYZxyz(6.4814, 3.6800, 16.2852)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E72 #44721E
analogous
#221E72 #4C1E72 #721E6E
triadic
#4C1E72 #724C1E #1E724C
tetradic
#4C1E72 #72221E #44721E #1E6E72
square
#4C1E72 #72221E #44721E #1E6E72
split-complementary
#4C1E72 #6E721E #1E7222
monochromatic
#100618 #2C1142 #4C1E72 #6C2BA2 #8C3ECC

Accessibility & contrast

On white

12.10
#4C1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4C1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E72
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E72#FFFFFF#000000##FFFFFF
##4C1E721.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#453146
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c1e72;
/* rgb */ color: rgb(76, 30, 114);
/* oklch */ color: oklch(34.9% 0.138 305.3);
Tailwind
colors: {
  custom: {
    50: '#825e9b',
    500: '#4c1e72',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e72;
$custom-light: #825e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e72",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 272.857,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.13802,
    "h": 305.3
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#4C1E72
secondary
#71A646
accent
#E2468D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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