#8A4040#8A4040

#8A4040 is a mid, moderate red. Relative luminance 0.094; OKLCH L 46.7% C 0.101 H 21.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8A4040
RGBrgb(138, 64, 64)
HSLhsl(0, 37%, 40%)
HSVhsv(0, 54%, 54%)
CMYKcmyk(0%, 53.6%, 53.6%, 45.9%)
CIE-LABlab(36.82, 31.52, 15.07)
CIE-LCHlch(36.82, 34.94, 25.55°)
OKLaboklab(46.74% 0.0942 0.0376)
OKLCHoklch(46.74% 0.101 21.7)
XYZxyz(13.2410, 9.4417, 5.9746)
Luminance0.0944 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4040 #408A8A
analogous
#8A4065 #8A4040 #8A6540
triadic
#8A4040 #408A40 #40408A
tetradic
#8A4040 #658A40 #408A8A #65408A
square
#8A4040 #658A40 #408A8A #65408A
split-complementary
#8A4040 #408A65 #40658A
monochromatic
#361919 #602D2D #8A4040 #B15656 #C48080

Accessibility & contrast

On white

7.27
#8A4040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A4040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A4040
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4040#FFFFFF#000000##FFFFFF
##8A40401.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514D3F
Deuteranopia (green-blind)
#635C3E
Tritanopia (blue-blind)
#963541
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a4040;
/* rgb */ color: rgb(138, 64, 64);
/* oklch */ color: oklch(46.7% 0.101 21.7);
Tailwind
colors: {
  custom: {
    50: '#b07774',
    500: '#8a4040',
    950: '#000000',
  },
}
SCSS
$custom: #8a4040;
$custom-light: #b07774;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4040",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 64
  },
  "hsl": {
    "h": 0,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46744,
    "c": 0.10138,
    "h": 21.7
  },
  "luminance": 0.0944
}

Semantic roles & 50–950 ramp

primary
#8A4040
secondary
#77AFAF
accent
#CDCD5B
background
#FBF7F7
surface
#F6EDED
border
#D0C8C8
text
#110908
muted
#807B7B

Preview Lab

Preview with #8A4040

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

Preview Lab → · Contrast checker → · Palette generator →

#8A4040 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva