#404F1C#404F1C

#404F1C is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.2% C 0.077 H 123.6°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#404F1C
RGBrgb(64, 79, 28)
HSLhsl(78, 48%, 21%)
HSVhsv(78, 65%, 31%)
CMYKcmyk(19%, 0%, 64.6%, 69%)
CIE-LABlab(31.27, -14.91, 27.57)
CIE-LCHlch(31.27, 31.34, 118.40°)
OKLaboklab(40.24% -0.0425 0.064)
OKLCHoklch(40.24% 0.077 123.6)
XYZxyz(5.1200, 6.7658, 2.1346)
Luminance0.0677 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F1C #2B1C4F
analogous
#4F441C #404F1C #264F1C
triadic
#404F1C #1C404F #4F1C40
tetradic
#404F1C #1C4F44 #2B1C4F #4F1C26
square
#404F1C #1C4F44 #2B1C4F #4F1C26
split-complementary
#404F1C #1C264F #441C4F
monochromatic
#121708 #1B220C #404F1C #657C2C #89A93C

Accessibility & contrast

On white

8.92
#404F1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#404F1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F1C
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F1C#FFFFFF#000000##FFFFFF
##404F1C1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A16
Deuteranopia (green-blind)
#52491F
Tritanopia (blue-blind)
#434B44
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #404f1c;
/* rgb */ color: rgb(64, 79, 28);
/* oklch */ color: oklch(40.2% 0.077 123.6);
Tailwind
colors: {
  custom: {
    50: '#76805a',
    500: '#404f1c',
    950: '#000000',
  },
}
SCSS
$custom: #404f1c;
$custom-light: #76805a;
$custom-dark: #000000;
JSON
{
  "hex": "#404f1c",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 28
  },
  "hsl": {
    "h": 77.647,
    "s": 47.664,
    "l": 20.98
  },
  "oklch": {
    "l": 0.40235,
    "c": 0.07682,
    "h": 123.6
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#404F1C
secondary
#564285
accent
#51D778
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #404F1C

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

Preview Lab → · Contrast checker → · Palette generator →

#404F1C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva