#4A0C42#4A0C42

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

Color values

HEX#4A0C42
RGBrgb(74, 12, 66)
HSLhsl(308, 72%, 17%)
HSVhsv(308, 84%, 29%)
CMYKcmyk(0%, 83.8%, 10.8%, 71%)
CIE-LABlab(16.07, 34.81, -17.98)
CIE-LCHlch(16.07, 39.18, 332.68°)
OKLaboklab(29.14% 0.1011 -0.0493)
OKLCHoklch(29.14% 0.112 334)
XYZxyz(3.9389, 2.1125, 5.3535)
Luminance0.0211 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0C42 #0C4A14
analogous
#330C4A #4A0C42 #4A0C23
triadic
#4A0C42 #424A0C #0C424A
tetradic
#4A0C42 #4A330C #0C4A14 #0C234A
square
#4A0C42 #4A330C #0C4A14 #0C234A
split-complementary
#4A0C42 #234A0C #0C4A33
monochromatic
#1A0417 #1A0417 #4A0C42 #7F1571 #B31DA0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A0C42#FFFFFF#000000##FFFFFF
##4A0C421.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)
#0A2243
Deuteranopia (green-blind)
#222B41
Tritanopia (blue-blind)
#4E1226
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #4a0c42;
/* rgb */ color: rgb(74, 12, 66);
/* oklch */ color: oklch(29.1% 0.112 334.0);
Tailwind
colors: {
  custom: {
    50: '#7f5376',
    500: '#4a0c42',
    950: '#000000',
  },
}
SCSS
$custom: #4a0c42;
$custom-light: #7f5376;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0c42",
  "rgb": {
    "r": 74,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 307.742,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.29135,
    "c": 0.11243,
    "h": 334
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#4A0C42
secondary
#2C8638
accent
#EF5039
background
#F8F4F7
surface
#EFE8ED
border
#CAC4C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4A0C42

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

Preview Lab → · Contrast checker → · Palette generator →

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