#4A0940#4A0940

#4A0940 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.8% C 0.114 H 335.5°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#4A0940
RGBrgb(74, 9, 64)
HSLhsl(309, 78%, 16%)
HSVhsv(309, 88%, 29%)
CMYKcmyk(0%, 87.8%, 13.5%, 71%)
CIE-LABlab(15.60, 35.46, -17.31)
CIE-LCHlch(15.60, 39.46, 333.98°)
OKLaboklab(28.76% 0.1039 -0.0473)
OKLCHoklch(28.76% 0.114 335.5)
XYZxyz(3.8472, 2.0217, 5.0371)
Luminance0.0202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0940 #094A13
analogous
#34094A #4A0940 #4A0920
triadic
#4A0940 #404A09 #09404A
tetradic
#4A0940 #4A3409 #094A13 #09204A
square
#4A0940 #4A3409 #094A13 #09204A
split-complementary
#4A0940 #204A09 #094A34
monochromatic
#1B0318 #1B0318 #4A0940 #81106F #B7169E

Accessibility & contrast

On white

14.96
#4A0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#4A0940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0940
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0940#FFFFFF#000000##FFFFFF
##4A09401.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092141
Deuteranopia (green-blind)
#222A3F
Tritanopia (blue-blind)
#4E0F24
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #4a0940;
/* rgb */ color: rgb(74, 9, 64);
/* oklch */ color: oklch(28.8% 0.114 335.5);
Tailwind
colors: {
  custom: {
    50: '#7f5275',
    500: '#4a0940',
    950: '#000000',
  },
}
SCSS
$custom: #4a0940;
$custom-light: #7f5275;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0940",
  "rgb": {
    "r": 74,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 309.231,
    "s": 78.313,
    "l": 16.275
  },
  "oklch": {
    "l": 0.28762,
    "c": 0.11414,
    "h": 335.5
  },
  "luminance": 0.02021
}

Semantic roles & 50–950 ramp

primary
#4A0940
secondary
#278736
accent
#F55133
background
#F8F4F7
surface
#EFE7ED
border
#CAC3C8
text
#0A0208
muted
#7C787B

Preview Lab

Preview with #4A0940

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

Preview Lab → · Contrast checker → · Palette generator →

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