#4A104C#4A104C

#4A104C is a dark, moderate purple. Relative luminance 0.023; OKLCH L 30.2% C 0.116 H 326.6°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#4A104C
RGBrgb(74, 16, 76)
HSLhsl(298, 65%, 18%)
HSVhsv(298, 79%, 30%)
CMYKcmyk(2.6%, 78.9%, 0%, 70.2%)
CIE-LABlab(17.22, 35.17, -23.08)
CIE-LCHlch(17.22, 42.06, 326.72°)
OKLaboklab(30.16% 0.097 -0.0641)
OKLCHoklch(30.16% 0.116 326.6)
XYZxyz(4.3138, 2.3485, 7.0622)
Luminance0.0235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A104C #124C10
analogous
#2C104C #4A104C #4C1030
triadic
#4A104C #4C4A10 #104C4A
tetradic
#4A104C #4C2C10 #124C10 #10304C
square
#4A104C #4C2C10 #124C10 #10304C
split-complementary
#4A104C #304C10 #104C2C
monochromatic
#190519 #190519 #4A104C #7B1B7F #AC25B1

Accessibility & contrast

On white

14.29
#4A104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A104C
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A104C#FFFFFF#000000##FFFFFF
##4A104C1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04264E
Deuteranopia (green-blind)
#1E2D4B
Tritanopia (blue-blind)
#4C1A2D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4a104c;
/* rgb */ color: rgb(74, 16, 76);
/* oklch */ color: oklch(30.2% 0.116 326.6);
Tailwind
colors: {
  custom: {
    50: '#7f557e',
    500: '#4a104c',
    950: '#000000',
  },
}
SCSS
$custom: #4a104c;
$custom-light: #7f557e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a104c",
  "rgb": {
    "r": 74,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 298,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.30163,
    "c": 0.11626,
    "h": 326.6
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#4A104C
secondary
#358632
accent
#E84045
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A104C

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

Preview Lab → · Contrast checker → · Palette generator →

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