#4A0C40#4A0C40

#4A0C40 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.111 H 335.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#4A0C40
RGBrgb(74, 12, 64)
HSLhsl(310, 72%, 17%)
HSVhsv(310, 84%, 29%)
CMYKcmyk(0%, 83.8%, 13.5%, 71%)
CIE-LABlab(15.95, 34.46, -16.77)
CIE-LCHlch(15.95, 38.33, 334.06°)
OKLaboklab(29.01% 0.1009 -0.0458)
OKLCHoklch(29.01% 0.111 335.6)
XYZxyz(3.8810, 2.0893, 5.0484)
Luminance0.0209 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0C40 #0C4A16
analogous
#350C4A #4A0C40 #4A0C21
triadic
#4A0C40 #404A0C #0C404A
tetradic
#4A0C40 #4A350C #0C4A16 #0C214A
square
#4A0C40 #4A350C #0C4A16 #0C214A
split-complementary
#4A0C40 #214A0C #0C4A35
monochromatic
#1A0417 #1A0417 #4A0C40 #7F156E #B31D9B

Accessibility & contrast

On white

14.81
#4A0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A0C40
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0C40#FFFFFF#000000##FFFFFF
##4A0C401.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2241
Deuteranopia (green-blind)
#232B3F
Tritanopia (blue-blind)
#4E1125
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #4a0c40;
/* rgb */ color: rgb(74, 12, 64);
/* oklch */ color: oklch(29.0% 0.111 335.6);
Tailwind
colors: {
  custom: {
    50: '#7f5375',
    500: '#4a0c40',
    950: '#000000',
  },
}
SCSS
$custom: #4a0c40;
$custom-light: #7f5375;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0c40",
  "rgb": {
    "r": 74,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 309.677,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.29012,
    "c": 0.11079,
    "h": 335.6
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#4A0C40
secondary
#2C863B
accent
#EF5639
background
#F8F4F7
surface
#EFE8ED
border
#CAC4C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4A0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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