#4A124A#4A124A

#4A124A is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.2% C 0.112 H 327.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#4A124A
RGBrgb(74, 18, 74)
HSLhsl(300, 61%, 18%)
HSVhsv(300, 76%, 29%)
CMYKcmyk(0%, 75.7%, 0%, 71%)
CIE-LABlab(17.38, 33.95, -21.45)
CIE-LCHlch(17.38, 40.16, 327.71°)
OKLaboklab(30.24% 0.0947 -0.0594)
OKLCHoklch(30.24% 0.112 327.9)
XYZxyz(4.2763, 2.3832, 6.7120)
Luminance0.0238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A124A #124A12
analogous
#2E124A #4A124A #4A122E
triadic
#4A124A #4A4A12 #124A4A
tetradic
#4A124A #4A2E12 #124A12 #122E4A
square
#4A124A #4A2E12 #124A12 #122E4A
split-complementary
#4A124A #2E4A12 #124A2E
monochromatic
#190619 #190619 #4A124A #7B1E7B #AC2AAC

Accessibility & contrast

On white

14.22
#4A124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4A124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A124A
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A124A#FFFFFF#000000##FFFFFF
##4A124A1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09264C
Deuteranopia (green-blind)
#202D49
Tritanopia (blue-blind)
#4D1A2C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4a124a;
/* rgb */ color: rgb(74, 18, 74);
/* oklch */ color: oklch(30.2% 0.112 327.9);
Tailwind
colors: {
  custom: {
    50: '#7f567d',
    500: '#4a124a',
    950: '#000000',
  },
}
SCSS
$custom: #4a124a;
$custom-light: #7f567d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a124a",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 300,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.30239,
    "c": 0.11173,
    "h": 327.9
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#4A124A
secondary
#358335
accent
#E44444
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4A124A

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

Preview Lab → · Contrast checker → · Palette generator →

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