#4A0C4D#4A0C4D

#4A0C4D is a dark, vivid purple. Relative luminance 0.023; OKLCH L 29.9% C 0.122 H 326.0°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#4A0C4D
RGBrgb(74, 12, 77)
HSLhsl(297, 73%, 17%)
HSVhsv(297, 84%, 30%)
CMYKcmyk(3.9%, 84.4%, 0%, 69.8%)
CIE-LABlab(16.77, 36.83, -24.48)
CIE-LCHlch(16.77, 44.23, 326.39°)
OKLaboklab(29.87% 0.1011 -0.0681)
OKLCHoklch(29.87% 0.122 326)
XYZxyz(4.2950, 2.2549, 7.2288)
Luminance0.0226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0C4D #0F4D0C
analogous
#2A0C4D #4A0C4D #4D0C2F
triadic
#4A0C4D #4D4A0C #0C4D4A
tetradic
#4A0C4D #4D2A0C #0F4D0C #0C2F4D
square
#4A0C4D #4D2A0C #0F4D0C #0C2F4D
split-complementary
#4A0C4D #2F4D0C #0C4D2A
monochromatic
#19041A #19041A #4A0C4D #7D1482 #B01DB7

Accessibility & contrast

On white

14.47
#4A0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#4A0C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0C4D
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0C4D#FFFFFF#000000##FFFFFF
##4A0C4D1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#1C2C4B
Tritanopia (blue-blind)
#4C182C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4a0c4d;
/* rgb */ color: rgb(74, 12, 77);
/* oklch */ color: oklch(29.9% 0.122 326.0);
Tailwind
colors: {
  custom: {
    50: '#7f547f',
    500: '#4a0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #4a0c4d;
$custom-light: #7f547f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0c4d",
  "rgb": {
    "r": 74,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 297.231,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.29866,
    "c": 0.12189,
    "h": 326
  },
  "luminance": 0.02255
}

Semantic roles & 50–950 ramp

primary
#4A0C4D
secondary
#30892C
accent
#F03841
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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