#4C1D7D#4C1D7D

#4C1D7D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.152 H 301.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#4C1D7D
RGBrgb(76, 29, 125)
HSLhsl(269, 62%, 30%)
HSVhsv(269, 77%, 49%)
CMYKcmyk(39.2%, 76.8%, 0%, 51%)
CIE-LABlab(23.32, 41.28, -45.46)
CIE-LCHlch(23.32, 61.41, 312.24°)
OKLaboklab(35.75% 0.0786 -0.1297)
OKLCHoklch(35.75% 0.152 301.2)
XYZxyz(7.1206, 3.8959, 19.7749)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D7D #4E7D1D
analogous
#1D1E7D #4C1D7D #7C1D7D
triadic
#4C1D7D #7D4C1D #1D7D4C
tetradic
#4C1D7D #7D1D1E #4E7D1D #1D7D7C
square
#4C1D7D #7D1D1E #4E7D1D #1D7D7C
split-complementary
#4C1D7D #7D7C1D #1E7D1D
monochromatic
#10061A #2E114B #4C1D7D #6A29AF #8941D3

Accessibility & contrast

On white

11.80
#4C1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D7D
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D7D#FFFFFF#000000##FFFFFF
##4C1D7D1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1d7d;
/* rgb */ color: rgb(76, 29, 125);
/* oklch */ color: oklch(35.8% 0.152 301.2);
Tailwind
colors: {
  custom: {
    50: '#835ea3',
    500: '#4c1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d7d;
$custom-light: #835ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d7d",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 269.375,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35755,
    "c": 0.15169,
    "h": 301.2
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#4C1D7D
secondary
#7CB145
accent
#E54296
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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