#4C124C#4C124C

#4C124C is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.7% C 0.115 H 327.9°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#4C124C
RGBrgb(76, 18, 76)
HSLhsl(300, 62%, 18%)
HSVhsv(300, 76%, 30%)
CMYKcmyk(0%, 76.3%, 0%, 70.2%)
CIE-LABlab(17.88, 34.87, -22.01)
CIE-LCHlch(17.88, 41.24, 327.74°)
OKLaboklab(30.71% 0.0972 -0.0609)
OKLCHoklch(30.71% 0.115 327.9)
XYZxyz(4.5012, 2.4912, 7.0799)
Luminance0.0249 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C124C #124C12
analogous
#2F124C #4C124C #4C122F
triadic
#4C124C #4C4C12 #124C4C
tetradic
#4C124C #4C2F12 #124C12 #122F4C
square
#4C124C #4C2F12 #124C12 #122F4C
split-complementary
#4C124C #2F4C12 #124C2F
monochromatic
#190619 #1B061B #4C124C #7D1E7D #AF29AF

Accessibility & contrast

On white

14.02
#4C124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C124C
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C124C#FFFFFF#000000##FFFFFF
##4C124C1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08274E
Deuteranopia (green-blind)
#212E4B
Tritanopia (blue-blind)
#4F1A2D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c124c;
/* rgb */ color: rgb(76, 18, 76);
/* oklch */ color: oklch(30.7% 0.115 327.9);
Tailwind
colors: {
  custom: {
    50: '#80567e',
    500: '#4c124c',
    950: '#000000',
  },
}
SCSS
$custom: #4c124c;
$custom-light: #80567e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c124c",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 300,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30709,
    "c": 0.11475,
    "h": 327.9
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#4C124C
secondary
#358535
accent
#E54343
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4C124C

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

Preview Lab → · Contrast checker → · Palette generator →

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