#4C1D9A#4C1D9A

#4C1D9A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.184 H 292.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4C1D9A
RGBrgb(76, 29, 154)
HSLhsl(263, 68%, 36%)
HSVhsv(263, 81%, 60%)
CMYKcmyk(50.6%, 81.2%, 0%, 39.6%)
CIE-LABlab(26.00, 48.94, -59.14)
CIE-LCHlch(26.00, 76.77, 309.61°)
OKLaboklab(38.45% 0.0702 -0.1699)
OKLCHoklch(38.45% 0.184 292.4)
XYZxyz(9.2509, 4.7480, 30.9946)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1D9A #6B9A1D
analogous
#1D2C9A #4C1D9A #8A1D9A
triadic
#4C1D9A #9A4C1D #1D9A4C
tetradic
#4C1D9A #9A1D2C #6B9A1D #1D9A8A
square
#4C1D9A #9A1D2C #6B9A1D #1D9A8A
split-complementary
#4C1D9A #9A8A1D #2C9A1D
monochromatic
#190A33 #331366 #4C1D9A #6527CE #8753DF

Accessibility & contrast

On white

10.77
#4C1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4C1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1D9A
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1D9A#FFFFFF#000000##FFFFFF
##4C1D9A1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#32415C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c1d9a;
/* rgb */ color: rgb(76, 29, 154);
/* oklch */ color: oklch(38.5% 0.184 292.4);
Tailwind
colors: {
  custom: {
    50: '#8760b9',
    500: '#4c1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #4c1d9a;
$custom-light: #8760b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1d9a",
  "rgb": {
    "r": 76,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 262.56,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3845,
    "c": 0.18378,
    "h": 292.4
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#4C1D9A
secondary
#97C251
accent
#EB3DAA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4C1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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