#4A104E#4A104E

#4A104E is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.3% C 0.118 H 325.2°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#4A104E
RGBrgb(74, 16, 78)
HSLhsl(296, 66%, 18%)
HSVhsv(296, 79%, 31%)
CMYKcmyk(5.1%, 79.5%, 0%, 69.4%)
CIE-LABlab(17.35, 35.56, -24.24)
CIE-LCHlch(17.35, 43.04, 325.72°)
OKLaboklab(30.3% 0.097 -0.0674)
OKLCHoklch(30.3% 0.118 325.2)
XYZxyz(4.3844, 2.3768, 7.4341)
Luminance0.0238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A104E #144E10
analogous
#2B104E #4A104E #4E1033
triadic
#4A104E #4E4A10 #104E4A
tetradic
#4A104E #4E2B10 #144E10 #10334E
square
#4A104E #4E2B10 #144E10 #10334E
split-complementary
#4A104E #334E10 #104E2B
monochromatic
#180519 #1A061B #4A104E #7A1A81 #AA25B4

Accessibility & contrast

On white

14.24
#4A104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A104E
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A104E#FFFFFF#000000##FFFFFF
##4A104E1.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012650
Deuteranopia (green-blind)
#1D2D4C
Tritanopia (blue-blind)
#4C1B2E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4a104e;
/* rgb */ color: rgb(74, 16, 78);
/* oklch */ color: oklch(30.3% 0.118 325.2);
Tailwind
colors: {
  custom: {
    50: '#7f5580',
    500: '#4a104e',
    950: '#000000',
  },
}
SCSS
$custom: #4a104e;
$custom-light: #7f5580;
$custom-dark: #000000;
JSON
{
  "hex": "#4a104e",
  "rgb": {
    "r": 74,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 296.129,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30301,
    "c": 0.11811,
    "h": 325.2
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#4A104E
secondary
#388832
accent
#E93F4A
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A104E

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

Preview Lab → · Contrast checker → · Palette generator →

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