#4C1D7F#4C1D7F

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

Color values

HEX#4C1D7F
RGBrgb(76, 29, 127)
HSLhsl(269, 63%, 31%)
HSVhsv(269, 77%, 50%)
CMYKcmyk(40.2%, 77.2%, 0%, 50.2%)
CIE-LABlab(23.50, 41.80, -46.45)
CIE-LCHlch(23.50, 62.49, 311.99°)
OKLaboklab(35.93% 0.0781 -0.1326)
OKLCHoklch(35.93% 0.154 300.5)
XYZxyz(7.2497, 3.9475, 20.4546)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D7F #507F1D
analogous
#1D1F7F #4C1D7F #7D1D7F
triadic
#4C1D7F #7F4C1D #1D7F4C
tetradic
#4C1D7F #7F1D1F #507F1D #1D7F7D
square
#4C1D7F #7F1D1F #507F1D #1D7F7D
split-complementary
#4C1D7F #7F7D1D #1F7F1D
monochromatic
#10061B #2E124D #4C1D7F #6A28B1 #8842D4

Accessibility & contrast

On white

11.73
#4C1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1D7F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D7F#FFFFFF#000000##FFFFFF
##4C1D7F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#40364D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1d7f;
/* rgb */ color: rgb(76, 29, 127);
/* oklch */ color: oklch(35.9% 0.154 300.5);
Tailwind
colors: {
  custom: {
    50: '#835ea5',
    500: '#4c1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d7f;
$custom-light: #835ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d7f",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 268.776,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3593,
    "c": 0.15393,
    "h": 300.5
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#4C1D7F
secondary
#7EB245
accent
#E64297
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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