#4C104A#4C104A

#4C104A is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.4% C 0.116 H 329.4°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#4C104A
RGBrgb(76, 16, 74)
HSLhsl(302, 65%, 18%)
HSVhsv(302, 79%, 30%)
CMYKcmyk(0%, 78.9%, 2.6%, 70.2%)
CIE-LABlab(17.47, 35.30, -21.29)
CIE-LCHlch(17.47, 41.22, 328.90°)
OKLaboklab(30.37% 0.0995 -0.0588)
OKLCHoklch(30.37% 0.116 329.4)
XYZxyz(4.4018, 2.4018, 6.7090)
Luminance0.0240 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C104A #104C12
analogous
#30104C #4C104A #4C102C
triadic
#4C104A #4A4C10 #104A4C
tetradic
#4C104A #4C3010 #104C12 #102C4C
square
#4C104A #4C3010 #104C12 #102C4C
split-complementary
#4C104A #2C4C10 #104C30
monochromatic
#190519 #190519 #4C104A #7F1B7B #B125AC

Accessibility & contrast

On white

14.19
#4C104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4C104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C104A
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C104A#FFFFFF#000000##FFFFFF
##4C104A1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08264C
Deuteranopia (green-blind)
#212E49
Tritanopia (blue-blind)
#4F182C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c104a;
/* rgb */ color: rgb(76, 16, 74);
/* oklch */ color: oklch(30.4% 0.116 329.4);
Tailwind
colors: {
  custom: {
    50: '#81557d',
    500: '#4c104a',
    950: '#000000',
  },
}
SCSS
$custom: #4c104a;
$custom-light: #81557d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c104a",
  "rgb": {
    "r": 76,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 302,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.30374,
    "c": 0.11558,
    "h": 329.4
  },
  "luminance": 0.02401
}

Semantic roles & 50–950 ramp

primary
#4C104A
secondary
#328635
accent
#E84540
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4C104A

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

Preview Lab → · Contrast checker → · Palette generator →

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