#4C1D8D#4C1D8D

#4C1D8D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.169 H 296.0°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4C1D8D
RGBrgb(76, 29, 141)
HSLhsl(265, 66%, 33%)
HSVhsv(265, 79%, 55%)
CMYKcmyk(46.1%, 79.4%, 0%, 44.7%)
CIE-LABlab(24.76, 45.48, -53.16)
CIE-LCHlch(24.76, 69.96, 310.55°)
OKLaboklab(37.2% 0.0743 -0.1523)
OKLCHoklch(37.2% 0.169 296)
XYZxyz(8.2263, 4.3381, 25.5981)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D8D #5E8D1D
analogous
#1D268D #4C1D8D #841D8D
triadic
#4C1D8D #8D4C1D #1D8D4C
tetradic
#4C1D8D #8D1D26 #5E8D1D #1D8D84
square
#4C1D8D #8D1D26 #5E8D1D #1D8D84
split-complementary
#4C1D8D #8D841D #268D1D
monochromatic
#150827 #31135A #4C1D8D #6727C0 #874BDA

Accessibility & contrast

On white

11.24
#4C1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D8D
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D8D#FFFFFF#000000##FFFFFF
##4C1D8D1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3A3C55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c1d8d;
/* rgb */ color: rgb(76, 29, 141);
/* oklch */ color: oklch(37.2% 0.169 296.0);
Tailwind
colors: {
  custom: {
    50: '#855faf',
    500: '#4c1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d8d;
$custom-light: #855faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d8d",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 265.179,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37204,
    "c": 0.16949,
    "h": 296
  },
  "luminance": 0.04338
}

Semantic roles & 50–950 ramp

primary
#4C1D8D
secondary
#8CBC4A
accent
#E93FA2
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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