#4A0D40#4A0D40

#4A0D40 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.110 H 335.6°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#4A0D40
RGBrgb(74, 13, 64)
HSLhsl(310, 70%, 17%)
HSVhsv(310, 82%, 29%)
CMYKcmyk(0%, 82.4%, 13.5%, 71%)
CIE-LABlab(16.08, 34.10, -16.57)
CIE-LCHlch(16.08, 37.91, 334.09°)
OKLaboklab(29.1% 0.0998 -0.0452)
OKLCHoklch(29.1% 0.11 335.6)
XYZxyz(3.8934, 2.1142, 5.0525)
Luminance0.0211 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0D40 #0D4A17
analogous
#360D4A #4A0D40 #4A0D22
triadic
#4A0D40 #404A0D #0D404A
tetradic
#4A0D40 #4A360D #0D4A17 #0D224A
square
#4A0D40 #4A360D #0D4A17 #0D224A
split-complementary
#4A0D40 #224A0D #0D4A36
monochromatic
#1A0517 #1A0517 #4A0D40 #7E166D #B21F9A

Accessibility & contrast

On white

14.76
#4A0D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#4A0D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0D40
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0D40#FFFFFF#000000##FFFFFF
##4A0D401.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2241
Deuteranopia (green-blind)
#232B3F
Tritanopia (blue-blind)
#4E1225
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #4a0d40;
/* rgb */ color: rgb(74, 13, 64);
/* oklch */ color: oklch(29.1% 0.110 335.6);
Tailwind
colors: {
  custom: {
    50: '#7f5375',
    500: '#4a0d40',
    950: '#000000',
  },
}
SCSS
$custom: #4a0d40;
$custom-light: #7f5375;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0d40",
  "rgb": {
    "r": 74,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 309.836,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.29103,
    "c": 0.10959,
    "h": 335.6
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#4A0D40
secondary
#2E853C
accent
#ED583B
background
#F8F5F7
surface
#EFE8ED
border
#CAC4C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4A0D40

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

Preview Lab → · Contrast checker → · Palette generator →

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