#4A0C47#4A0C47

#4A0C47 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.5% C 0.117 H 330.2°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#4A0C47
RGBrgb(74, 12, 71)
HSLhsl(303, 72%, 17%)
HSVhsv(303, 84%, 29%)
CMYKcmyk(0%, 83.8%, 4.1%, 71%)
CIE-LABlab(16.38, 35.70, -20.98)
CIE-LCHlch(16.38, 41.41, 329.57°)
OKLaboklab(29.46% 0.1012 -0.0579)
OKLCHoklch(29.46% 0.117 330.2)
XYZxyz(4.0928, 2.1740, 6.1641)
Luminance0.0217 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0C47 #0C4A0F
analogous
#2E0C4A #4A0C47 #4A0C28
triadic
#4A0C47 #474A0C #0C474A
tetradic
#4A0C47 #4A2E0C #0C4A0F #0C284A
square
#4A0C47 #4A2E0C #0C4A0F #0C284A
split-complementary
#4A0C47 #284A0C #0C4A2E
monochromatic
#1A0419 #1A0419 #4A0C47 #7F157A #B31DAC

Accessibility & contrast

On white

14.64
#4A0C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#4A0C47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0C47
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0C47#FFFFFF#000000##FFFFFF
##4A0C471.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052349
Deuteranopia (green-blind)
#1F2B46
Tritanopia (blue-blind)
#4D1529
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4a0c47;
/* rgb */ color: rgb(74, 12, 71);
/* oklch */ color: oklch(29.5% 0.117 330.2);
Tailwind
colors: {
  custom: {
    50: '#7f537a',
    500: '#4a0c47',
    950: '#000000',
  },
}
SCSS
$custom: #4a0c47;
$custom-light: #7f537a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0c47",
  "rgb": {
    "r": 74,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 302.903,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.29456,
    "c": 0.11664,
    "h": 330.2
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#4A0C47
secondary
#2C8630
accent
#EF4239
background
#F8F5F7
surface
#EFE8ED
border
#CAC4C8
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4A0C47

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

Preview Lab → · Contrast checker → · Palette generator →

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