#4C1E7A#4C1E7A

#4C1E7A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.147 H 302.1°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4C1E7A
RGBrgb(76, 30, 122)
HSLhsl(270, 61%, 30%)
HSVhsv(270, 75%, 48%)
CMYKcmyk(37.7%, 75.4%, 0%, 52.2%)
CIE-LABlab(23.24, 40.02, -43.70)
CIE-LCHlch(23.24, 59.26, 312.49°)
OKLaboklab(35.61% 0.0783 -0.1245)
OKLCHoklch(35.61% 0.147 302.1)
XYZxyz(6.9568, 3.8702, 18.7891)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E7A #4C7A1E
analogous
#1E1E7A #4C1E7A #7A1E7A
triadic
#4C1E7A #7A4C1E #1E7A4C
tetradic
#4C1E7A #7A1E1E #4C7A1E #1E7A7A
square
#4C1E7A #7A1E1E #4C7A1E #1E7A7A
split-complementary
#4C1E7A #7A7A1E #1E7A1E
monochromatic
#0F0619 #2D1249 #4C1E7A #6B2AAB #8942D0

Accessibility & contrast

On white

11.84
#4C1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1E7A
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E7A#FFFFFF#000000##FFFFFF
##4C1E7A1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#42354A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1e7a;
/* rgb */ color: rgb(76, 30, 122);
/* oklch */ color: oklch(35.6% 0.147 302.1);
Tailwind
colors: {
  custom: {
    50: '#835ea1',
    500: '#4c1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e7a;
$custom-light: #835ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e7a",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 270,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35614,
    "c": 0.14711,
    "h": 302.1
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#4C1E7A
secondary
#7AAE46
accent
#E44494
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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