#4A1238#4A1238

#4A1238 is a dark, moderate pink. Relative luminance 0.022; OKLCH L 29.2% C 0.096 H 343.2°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#4A1238
RGBrgb(74, 18, 56)
HSLhsl(319, 61%, 18%)
HSVhsv(319, 76%, 29%)
CMYKcmyk(0%, 75.7%, 24.3%, 71%)
CIE-LABlab(16.38, 30.72, -10.46)
CIE-LCHlch(16.38, 32.46, 341.21°)
OKLaboklab(29.18% 0.0923 -0.0279)
OKLCHoklch(29.18% 0.096 343.2)
XYZxyz(3.7543, 2.1744, 3.9626)
Luminance0.0217 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1238 #124A24
analogous
#40124A #4A1238 #4A121C
triadic
#4A1238 #384A12 #12384A
tetradic
#4A1238 #4A4012 #124A24 #121C4A
square
#4A1238 #4A4012 #124A24 #121C4A
split-complementary
#4A1238 #1C4A12 #124A40
monochromatic
#190613 #190613 #4A1238 #7B1E5D #AC2A83

Accessibility & contrast

On white

14.64
#4A1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#4A1238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1238
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1238#FFFFFF#000000##FFFFFF
##4A12381.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172339
Deuteranopia (green-blind)
#282C37
Tritanopia (blue-blind)
#4F1223
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4a1238;
/* rgb */ color: rgb(74, 18, 56);
/* oklch */ color: oklch(29.2% 0.096 343.2);
Tailwind
colors: {
  custom: {
    50: '#7f556e',
    500: '#4a1238',
    950: '#000000',
  },
}
SCSS
$custom: #4a1238;
$custom-light: #7f556e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1238",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 319.286,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.29183,
    "c": 0.09645,
    "h": 343.2
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#4A1238
secondary
#35834E
accent
#E47744
background
#F7F5F6
surface
#EEE9EC
border
#C9C5C7
text
#0A0307
muted
#7C787A

Preview Lab

Preview with #4A1238

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

Preview Lab → · Contrast checker → · Palette generator →

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