#4C124A#4C124A

#4C124A is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.6% C 0.113 H 329.4°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#4C124A
RGBrgb(76, 18, 74)
HSLhsl(302, 62%, 18%)
HSVhsv(302, 76%, 30%)
CMYKcmyk(0%, 76.3%, 2.6%, 70.2%)
CIE-LABlab(17.75, 34.48, -20.84)
CIE-LCHlch(17.75, 40.29, 328.86°)
OKLaboklab(30.58% 0.0972 -0.0575)
OKLCHoklch(30.58% 0.113 329.4)
XYZxyz(4.4328, 2.4639, 6.7193)
Luminance0.0246 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C124A #124C14
analogous
#31124C #4C124A #4C122D
triadic
#4C124A #4A4C12 #124A4C
tetradic
#4C124A #4C3112 #124C14 #122D4C
square
#4C124A #4C3112 #124C14 #122D4C
split-complementary
#4C124A #2D4C12 #124C31
monochromatic
#190618 #1B061A #4C124A #7D1E7A #AF29AA

Accessibility & contrast

On white

14.07
#4C124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4C124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C124A
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C124A#FFFFFF#000000##FFFFFF
##4C124A1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B264C
Deuteranopia (green-blind)
#222E49
Tritanopia (blue-blind)
#4F1A2C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c124a;
/* rgb */ color: rgb(76, 18, 74);
/* oklch */ color: oklch(30.6% 0.113 329.4);
Tailwind
colors: {
  custom: {
    50: '#80567d',
    500: '#4c124a',
    950: '#000000',
  },
}
SCSS
$custom: #4c124a;
$custom-light: #80567d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c124a",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 302.069,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30579,
    "c": 0.11293,
    "h": 329.4
  },
  "luminance": 0.02464
}

Semantic roles & 50–950 ramp

primary
#4C124A
secondary
#358538
accent
#E54943
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4C124A

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

Preview Lab → · Contrast checker → · Palette generator →

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