#4C1E7D#4C1E7D

#4C1E7D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.150 H 301.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#4C1E7D
RGBrgb(76, 30, 125)
HSLhsl(269, 61%, 30%)
HSVhsv(269, 76%, 49%)
CMYKcmyk(39.2%, 76%, 0%, 51%)
CIE-LABlab(23.49, 40.81, -45.19)
CIE-LCHlch(23.49, 60.89, 312.08°)
OKLaboklab(35.87% 0.0776 -0.1289)
OKLCHoklch(35.87% 0.151 301)
XYZxyz(7.1455, 3.9457, 19.7832)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1E7D #4F7D1E
analogous
#1E1F7D #4C1E7D #7B1E7D
triadic
#4C1E7D #7D4C1E #1E7D4C
tetradic
#4C1E7D #7D1E1F #4F7D1E #1E7D7B
square
#4C1E7D #7D1E1F #4F7D1E #1E7D7B
split-complementary
#4C1E7D #7D7B1E #1F7D1E
monochromatic
#10061A #2E124C #4C1E7D #6A2AAE #8843D2

Accessibility & contrast

On white

11.74
#4C1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4C1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1E7D
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1E7D#FFFFFF#000000##FFFFFF
##4C1E7D1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#41364C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1e7d;
/* rgb */ color: rgb(76, 30, 125);
/* oklch */ color: oklch(35.9% 0.150 301.0);
Tailwind
colors: {
  custom: {
    50: '#835fa3',
    500: '#4c1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1e7d;
$custom-light: #835fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1e7d",
  "rgb": {
    "r": 76,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 269.053,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35872,
    "c": 0.1505,
    "h": 301
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#4C1E7D
secondary
#7DB046
accent
#E44396
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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