#804240#804240

#804240 is a mid, moderate red. Relative luminance 0.089; OKLCH L 45.6% C 0.086 H 22.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#804240
RGBrgb(128, 66, 64)
HSLhsl(2, 33%, 38%)
HSVhsv(2, 50%, 50%)
CMYKcmyk(0%, 48.4%, 50%, 49.8%)
CIE-LABlab(35.71, 26.39, 13.30)
CIE-LCHlch(35.71, 29.55, 26.75°)
OKLaboklab(45.58% 0.0791 0.0335)
OKLCHoklch(45.58% 0.086 22.9)
XYZxyz(11.7765, 8.8570, 5.9389)
Luminance0.0886 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804240 #407E80
analogous
#80405E #804240 #806240
triadic
#804240 #408042 #424080
tetradic
#804240 #5E8040 #407E80 #624080
square
#804240 #5E8040 #407E80 #624080
split-complementary
#804240 #408062 #405E80
monochromatic
#2E1817 #572D2C #804240 #A95754 #BE7F7D

Accessibility & contrast

On white

7.58
#804240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#804240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #804240
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804240#FFFFFF#000000##FFFFFF
##8042401.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504C3F
Deuteranopia (green-blind)
#5F593F
Tritanopia (blue-blind)
#8B3942
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #804240;
/* rgb */ color: rgb(128, 66, 64);
/* oklch */ color: oklch(45.6% 0.086 22.9);
Tailwind
colors: {
  custom: {
    50: '#a87874',
    500: '#804240',
    950: '#000000',
  },
}
SCSS
$custom: #804240;
$custom-light: #a87874;
$custom-dark: #000000;
JSON
{
  "hex": "#804240",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 64
  },
  "hsl": {
    "h": 1.875,
    "s": 33.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45584,
    "c": 0.08585,
    "h": 22.9
  },
  "luminance": 0.08856
}

Semantic roles & 50–950 ramp

primary
#804240
secondary
#74A7A8
accent
#C6C95E
background
#FAF7F7
surface
#F4EDED
border
#CEC8C8
text
#100908
muted
#7F7B7B

Preview Lab

Preview with #804240

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

Preview Lab → · Contrast checker → · Palette generator →

#804240 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva