#4A173F#4A173F

#4A173F is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.2% C 0.094 H 337.1°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#4A173F
RGBrgb(74, 23, 63)
HSLhsl(313, 53%, 19%)
HSVhsv(313, 69%, 29%)
CMYKcmyk(0%, 68.9%, 14.9%, 71%)
CIE-LABlab(17.59, 29.54, -13.51)
CIE-LCHlch(17.59, 32.48, 335.43°)
OKLaboklab(30.18% 0.0867 -0.0366)
OKLCHoklch(30.18% 0.094 337.1)
XYZxyz(4.0277, 2.4279, 4.9582)
Luminance0.0243 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A173F #174A22
analogous
#3C174A #4A173F #4A1726
triadic
#4A173F #3F4A17 #173F4A
tetradic
#4A173F #4A3C17 #174A22 #17264A
square
#4A173F #4A3C17 #174A22 #17264A
split-complementary
#4A173F #264A17 #174A3C
monochromatic
#170714 #1B0817 #4A173F #792667 #A7348E

Accessibility & contrast

On white

14.14
#4A173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4A173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A173F
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A173F#FFFFFF#000000##FFFFFF
##4A173F1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182640
Deuteranopia (green-blind)
#282E3E
Tritanopia (blue-blind)
#4E1928
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4a173f;
/* rgb */ color: rgb(74, 23, 63);
/* oklch */ color: oklch(30.2% 0.094 337.1);
Tailwind
colors: {
  custom: {
    50: '#7e5874',
    500: '#4a173f',
    950: '#000000',
  },
}
SCSS
$custom: #4a173f;
$custom-light: #7e5874;
$custom-dark: #000000;
JSON
{
  "hex": "#4a173f",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 312.941,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30184,
    "c": 0.09406,
    "h": 337.1
  },
  "luminance": 0.02428
}

Semantic roles & 50–950 ramp

primary
#4A173F
secondary
#3C814B
accent
#DC6B4C
background
#F7F5F7
surface
#EEE9ED
border
#C9C5C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4A173F

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

Preview Lab → · Contrast checker → · Palette generator →

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