#4E1240#4E1240

#4E1240 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.3% C 0.106 H 338.7°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#4E1240
RGBrgb(78, 18, 64)
HSLhsl(314, 63%, 19%)
HSVhsv(314, 77%, 31%)
CMYKcmyk(0%, 76.9%, 17.9%, 69.4%)
CIE-LABlab(17.57, 33.25, -14.18)
CIE-LCHlch(17.57, 36.15, 336.90°)
OKLaboklab(30.33% 0.0985 -0.0384)
OKLCHoklch(30.33% 0.106 338.7)
XYZxyz(4.2837, 2.4229, 5.0916)
Luminance0.0242 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1240 #124E20
analogous
#3E124E #4E1240 #4E1222
triadic
#4E1240 #404E12 #12404E
tetradic
#4E1240 #4E3E12 #124E20 #12224E
square
#4E1240 #4E3E12 #124E20 #12224E
split-complementary
#4E1240 #224E12 #124E3E
monochromatic
#190614 #1C0717 #4E1240 #801D69 #B12992

Accessibility & contrast

On white

14.15
#4E1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4E1240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1240
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1240#FFFFFF#000000##FFFFFF
##4E12401.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152541
Deuteranopia (green-blind)
#282E3F
Tritanopia (blue-blind)
#531427
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4e1240;
/* rgb */ color: rgb(78, 18, 64);
/* oklch */ color: oklch(30.3% 0.106 338.7);
Tailwind
colors: {
  custom: {
    50: '#825675',
    500: '#4e1240',
    950: '#000000',
  },
}
SCSS
$custom: #4e1240;
$custom-light: #825675;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1240",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 314,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.30331,
    "c": 0.10574,
    "h": 338.7
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#4E1240
secondary
#358748
accent
#E66842
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #4E1240

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

Preview Lab → · Contrast checker → · Palette generator →

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