#4A104D#4A104D

#4A104D is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.2% C 0.117 H 325.9°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#4A104D
RGBrgb(74, 16, 77)
HSLhsl(297, 66%, 18%)
HSVhsv(297, 79%, 30%)
CMYKcmyk(3.9%, 79.2%, 0%, 69.8%)
CIE-LABlab(17.29, 35.36, -23.66)
CIE-LCHlch(17.29, 42.55, 326.21°)
OKLaboklab(30.23% 0.097 -0.0658)
OKLCHoklch(30.23% 0.117 325.9)
XYZxyz(4.3488, 2.3625, 7.2467)
Luminance0.0236 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A104D #134D10
analogous
#2B104D #4A104D #4D1031
triadic
#4A104D #4D4A10 #104D4A
tetradic
#4A104D #4D2B10 #134D10 #10314D
square
#4A104D #4D2B10 #134D10 #10314D
split-complementary
#4A104D #314D10 #104D2B
monochromatic
#180519 #19051A #4A104D #7B1B80 #AB25B2

Accessibility & contrast

On white

14.26
#4A104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4A104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A104D
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A104D#FFFFFF#000000##FFFFFF
##4A104D1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02264F
Deuteranopia (green-blind)
#1E2D4C
Tritanopia (blue-blind)
#4C1A2D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4a104d;
/* rgb */ color: rgb(74, 16, 77);
/* oklch */ color: oklch(30.2% 0.117 325.9);
Tailwind
colors: {
  custom: {
    50: '#7f557f',
    500: '#4a104d',
    950: '#000000',
  },
}
SCSS
$custom: #4a104d;
$custom-light: #7f557f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a104d",
  "rgb": {
    "r": 74,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 297.049,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30232,
    "c": 0.11718,
    "h": 325.9
  },
  "luminance": 0.02362
}

Semantic roles & 50–950 ramp

primary
#4A104D
secondary
#368732
accent
#E93F48
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A104D

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

Preview Lab → · Contrast checker → · Palette generator →

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