#4A0C4B#4A0C4B

#4A0C4B is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.7% C 0.120 H 327.4°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#4A0C4B
RGBrgb(74, 12, 75)
HSLhsl(299, 72%, 17%)
HSVhsv(299, 84%, 29%)
CMYKcmyk(1.3%, 84%, 0%, 70.6%)
CIE-LABlab(16.64, 36.45, -23.32)
CIE-LCHlch(16.64, 43.27, 327.39°)
OKLaboklab(29.73% 0.1012 -0.0647)
OKLCHoklch(29.73% 0.12 327.4)
XYZxyz(4.2254, 2.2271, 6.8626)
Luminance0.0223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0C4B #0D4B0C
analogous
#2B0C4B #4A0C4B #4B0C2D
triadic
#4A0C4B #4B4A0C #0C4B4A
tetradic
#4A0C4B #4B2B0C #0D4B0C #0C2D4B
square
#4A0C4B #4B2B0C #0D4B0C #0C2D4B
split-complementary
#4A0C4B #2D4B0C #0C4B2B
monochromatic
#1A041A #1A041A #4A0C4B #7E1480 #B21DB5

Accessibility & contrast

On white

14.53
#4A0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A0C4B
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0C4B#FFFFFF#000000##FFFFFF
##4A0C4B1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#1D2C49
Tritanopia (blue-blind)
#4C172B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4a0c4b;
/* rgb */ color: rgb(74, 12, 75);
/* oklch */ color: oklch(29.7% 0.120 327.4);
Tailwind
colors: {
  custom: {
    50: '#7f537d',
    500: '#4a0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #4a0c4b;
$custom-light: #7f537d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0c4b",
  "rgb": {
    "r": 74,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 299.048,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.29726,
    "c": 0.12012,
    "h": 327.4
  },
  "luminance": 0.02227
}

Semantic roles & 50–950 ramp

primary
#4A0C4B
secondary
#2E872C
accent
#EF393C
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4A0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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