#4C124D#4C124D

#4C124D is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.8% C 0.116 H 327.2°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#4C124D
RGBrgb(76, 18, 77)
HSLhsl(299, 62%, 19%)
HSVhsv(299, 77%, 30%)
CMYKcmyk(1.3%, 76.6%, 0%, 69.8%)
CIE-LABlab(17.94, 35.06, -22.60)
CIE-LCHlch(17.94, 41.71, 327.20°)
OKLaboklab(30.78% 0.0973 -0.0626)
OKLCHoklch(30.78% 0.116 327.2)
XYZxyz(4.5363, 2.5052, 7.2644)
Luminance0.0250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C124D #134D12
analogous
#2E124D #4C124D #4D1230
triadic
#4C124D #4D4C12 #124D4C
tetradic
#4C124D #4D2E12 #134D12 #12304D
square
#4C124D #4D2E12 #134D12 #12304D
split-complementary
#4C124D #304D12 #124D2E
monochromatic
#180619 #1B061B #4C124D #7D1E7F #AE29B0

Accessibility & contrast

On white

13.99
#4C124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#4C124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C124D
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C124D#FFFFFF#000000##FFFFFF
##4C124D1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07274F
Deuteranopia (green-blind)
#212E4B
Tritanopia (blue-blind)
#4E1B2E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c124d;
/* rgb */ color: rgb(76, 18, 77);
/* oklch */ color: oklch(30.8% 0.116 327.2);
Tailwind
colors: {
  custom: {
    50: '#80567f',
    500: '#4c124d',
    950: '#000000',
  },
}
SCSS
$custom: #4c124d;
$custom-light: #80567f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c124d",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 298.983,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.30775,
    "c": 0.11568,
    "h": 327.2
  },
  "luminance": 0.02505
}

Semantic roles & 50–950 ramp

primary
#4C124D
secondary
#368635
accent
#E54345
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4C124D

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

Preview Lab → · Contrast checker → · Palette generator →

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