#4C1D8A#4C1D8A

#4C1D8A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.166 H 296.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#4C1D8A
RGBrgb(76, 29, 138)
HSLhsl(266, 65%, 33%)
HSVhsv(266, 79%, 54%)
CMYKcmyk(44.9%, 79%, 0%, 45.9%)
CIE-LABlab(24.48, 44.69, -51.75)
CIE-LCHlch(24.48, 68.38, 310.81°)
OKLaboklab(36.93% 0.0752 -0.1482)
OKLCHoklch(36.93% 0.166 296.9)
XYZxyz(8.0061, 4.2500, 24.4384)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D8A #5B8A1D
analogous
#1D248A #4C1D8A #831D8A
triadic
#4C1D8A #8A4C1D #1D8A4C
tetradic
#4C1D8A #8A1D24 #5B8A1D #1D8A83
square
#4C1D8A #8A1D24 #5B8A1D #1D8A83
split-complementary
#4C1D8A #8A831D #248A1D
monochromatic
#140825 #301257 #4C1D8A #6828BD #8749D9

Accessibility & contrast

On white

11.35
#4C1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D8A
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D8A#FFFFFF#000000##FFFFFF
##4C1D8A1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#3B3B53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1d8a;
/* rgb */ color: rgb(76, 29, 138);
/* oklch */ color: oklch(36.9% 0.166 296.9);
Tailwind
colors: {
  custom: {
    50: '#855fad',
    500: '#4c1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d8a;
$custom-light: #855fad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d8a",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 265.872,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36925,
    "c": 0.16616,
    "h": 296.9
  },
  "luminance": 0.0425
}

Semantic roles & 50–950 ramp

primary
#4C1D8A
secondary
#89BB48
accent
#E840A0
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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