#4C124F#4C124F

#4C124F is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.9% C 0.118 H 325.8°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#4C124F
RGBrgb(76, 18, 79)
HSLhsl(297, 63%, 19%)
HSVhsv(297, 77%, 31%)
CMYKcmyk(3.8%, 77.2%, 0%, 69%)
CIE-LABlab(18.07, 35.46, -23.75)
CIE-LCHlch(18.07, 42.68, 326.18°)
OKLaboklab(30.91% 0.0973 -0.066)
OKLCHoklch(30.91% 0.118 325.8)
XYZxyz(4.6080, 2.5339, 7.6420)
Luminance0.0253 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C124F #154F12
analogous
#2E124F #4C124F #4F1234
triadic
#4C124F #4F4C12 #124F4C
tetradic
#4C124F #4F2E12 #154F12 #12344F
square
#4C124F #4F2E12 #154F12 #12344F
split-complementary
#4C124F #344F12 #124F2E
monochromatic
#180619 #1C071D #4C124F #7C1D81 #AC29B3

Accessibility & contrast

On white

13.94
#4C124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4C124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C124F
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C124F#FFFFFF#000000##FFFFFF
##4C124F1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042851
Deuteranopia (green-blind)
#1F2F4D
Tritanopia (blue-blind)
#4E1C2F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c124f;
/* rgb */ color: rgb(76, 18, 79);
/* oklch */ color: oklch(30.9% 0.118 325.8);
Tailwind
colors: {
  custom: {
    50: '#815680',
    500: '#4c124f',
    950: '#000000',
  },
}
SCSS
$custom: #4c124f;
$custom-light: #815680;
$custom-dark: #000000;
JSON
{
  "hex": "#4c124f",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 297.049,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30909,
    "c": 0.11753,
    "h": 325.8
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#4C124F
secondary
#398835
accent
#E6424A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4C124F

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

Preview Lab → · Contrast checker → · Palette generator →

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