#4C1E79#4C1E79

#4C1E79 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.146 H 302.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4C1E79
RGBrgb(76, 30, 121)
HSLhsl(270, 60%, 30%)
HSVhsv(270, 75%, 47%)
CMYKcmyk(37.2%, 75.2%, 0%, 52.5%)
CIE-LABlab(23.15, 39.76, -43.20)
CIE-LCHlch(23.15, 58.71, 312.63°)
OKLaboklab(35.53% 0.0785 -0.1231)
OKLCHoklch(35.53% 0.146 302.5)
XYZxyz(6.8951, 3.8455, 18.4645)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E79 #4B791E
analogous
#1F1E79 #4C1E79 #791E79
triadic
#4C1E79 #794C1E #1E794C
tetradic
#4C1E79 #791F1E #4B791E #1E7979
square
#4C1E79 #791F1E #4B791E #1E7979
split-complementary
#4C1E79 #79791E #1E791F
monochromatic
#0F0619 #2D1248 #4C1E79 #6B2AAA #8941D0

Accessibility & contrast

On white

11.87
#4C1E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4C1E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E79
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E79#FFFFFF#000000##FFFFFF
##4C1E791.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#433449
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1e79;
/* rgb */ color: rgb(76, 30, 121);
/* oklch */ color: oklch(35.5% 0.146 302.5);
Tailwind
colors: {
  custom: {
    50: '#835ea0',
    500: '#4c1e79',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e79;
$custom-light: #835ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e79",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 270.33,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35529,
    "c": 0.14598,
    "h": 302.5
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#4C1E79
secondary
#79AD46
accent
#E34493
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4C1E79

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

Preview Lab → · Contrast checker → · Palette generator →

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