#404F1B#404F1B

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

Color values

HEX#404F1B
RGBrgb(64, 79, 27)
HSLhsl(77, 49%, 21%)
HSVhsv(77, 66%, 31%)
CMYKcmyk(19%, 0%, 65.8%, 69%)
CIE-LABlab(31.26, -15.00, 28.08)
CIE-LCHlch(31.26, 31.83, 118.12°)
OKLaboklab(40.22% -0.0429 0.0649)
OKLCHoklch(40.22% 0.078 123.5)
XYZxyz(5.1082, 6.7611, 2.0726)
Luminance0.0676 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F1B #2A1B4F
analogous
#4F441B #404F1B #264F1B
triadic
#404F1B #1B404F #4F1B40
tetradic
#404F1B #1B4F44 #2A1B4F #4F1B26
square
#404F1B #1B4F44 #2A1B4F #4F1B26
split-complementary
#404F1B #1B264F #441B4F
monochromatic
#121708 #1B210B #404F1B #657D2B #8AAA3A

Accessibility & contrast

On white

8.93
#404F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404F1B
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F1B#FFFFFF#000000##FFFFFF
##404F1B1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404f1b;
/* rgb */ color: rgb(64, 79, 27);
/* oklch */ color: oklch(40.2% 0.078 123.5);
Tailwind
colors: {
  custom: {
    50: '#76805a',
    500: '#404f1b',
    950: '#000000',
  },
}
SCSS
$custom: #404f1b;
$custom-light: #76805a;
$custom-dark: #000000;
JSON
{
  "hex": "#404f1b",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 27
  },
  "hsl": {
    "h": 77.308,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40223,
    "c": 0.07782,
    "h": 123.5
  },
  "luminance": 0.06761
}

Semantic roles & 50–950 ramp

primary
#404F1B
secondary
#554185
accent
#4FD977
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #404F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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