#404F0F#404F0F

#404F0F is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 40.1% C 0.088 H 122.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#404F0F
RGBrgb(64, 79, 15)
HSLhsl(74, 68%, 18%)
HSVhsv(74, 81%, 31%)
CMYKcmyk(19%, 0%, 81%, 69%)
CIE-LABlab(31.15, -15.94, 33.51)
CIE-LCHlch(31.15, 37.11, 115.44°)
OKLaboklab(40.11% -0.0468 0.0744)
OKLCHoklch(40.11% 0.088 122.2)
XYZxyz(4.9966, 6.7164, 1.4850)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F0F #1E0F4F
analogous
#4F3E0F #404F0F #204F0F
triadic
#404F0F #0F404F #4F0F40
tetradic
#404F0F #0F4F3E #1E0F4F #4F0F20
square
#404F0F #0F4F3E #1E0F4F #4F0F20
split-complementary
#404F0F #0F204F #3E0F4F
monochromatic
#151A05 #161C05 #404F0F #6A8219 #93B623

Accessibility & contrast

On white

8.96
#404F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#404F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F0F
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F0F#FFFFFF#000000##FFFFFF
##404F0F1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A04
Deuteranopia (green-blind)
#524915
Tritanopia (blue-blind)
#444B43
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404f0f;
/* rgb */ color: rgb(64, 79, 15);
/* oklch */ color: oklch(40.1% 0.088 122.2);
Tailwind
colors: {
  custom: {
    50: '#778053',
    500: '#404f0f',
    950: '#000000',
  },
}
SCSS
$custom: #404f0f;
$custom-light: #778053;
$custom-dark: #000000;
JSON
{
  "hex": "#404f0f",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 15
  },
  "hsl": {
    "h": 74.063,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.40106,
    "c": 0.08785,
    "h": 122.2
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#404F0F
secondary
#453189
accent
#3DEB66
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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