#4C124E#4C124E

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

Color values

HEX#4C124E
RGBrgb(76, 18, 78)
HSLhsl(298, 63%, 19%)
HSVhsv(298, 77%, 31%)
CMYKcmyk(2.6%, 76.9%, 0%, 69.4%)
CIE-LABlab(18.01, 35.26, -23.18)
CIE-LCHlch(18.01, 42.19, 326.68°)
OKLaboklab(30.84% 0.0973 -0.0643)
OKLCHoklch(30.84% 0.117 326.5)
XYZxyz(4.5719, 2.5195, 7.4518)
Luminance0.0252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C124E #144E12
analogous
#2E124E #4C124E #4E1232
triadic
#4C124E #4E4C12 #124E4C
tetradic
#4C124E #4E2E12 #144E12 #12324E
square
#4C124E #4E2E12 #144E12 #12324E
split-complementary
#4C124E #324E12 #124E2E
monochromatic
#180619 #1C071C #4C124E #7C1D80 #AD29B1

Accessibility & contrast

On white

13.96
#4C124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C124E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C124E#FFFFFF#000000##FFFFFF
##4C124E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#202F4C
Tritanopia (blue-blind)
#4E1B2E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c124e;
/* rgb */ color: rgb(76, 18, 78);
/* oklch */ color: oklch(30.8% 0.117 326.5);
Tailwind
colors: {
  custom: {
    50: '#815680',
    500: '#4c124e',
    950: '#000000',
  },
}
SCSS
$custom: #4c124e;
$custom-light: #815680;
$custom-dark: #000000;
JSON
{
  "hex": "#4c124e",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 298,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.30842,
    "c": 0.1166,
    "h": 326.5
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#4C124E
secondary
#388735
accent
#E64248
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4C124E

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

Preview Lab → · Contrast checker → · Palette generator →

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