#404C0F#404C0F

#404C0F is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.3% C 0.084 H 120.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#404C0F
RGBrgb(64, 76, 15)
HSLhsl(72, 67%, 18%)
HSVhsv(72, 80%, 30%)
CMYKcmyk(15.8%, 0%, 80.3%, 70.2%)
CIE-LABlab(30.14, -14.26, 32.54)
CIE-LCHlch(30.14, 35.52, 113.67°)
OKLaboklab(39.29% -0.0421 0.0723)
OKLCHoklch(39.29% 0.084 120.2)
XYZxyz(4.7851, 6.2934, 1.4145)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C0F #1B0F4C
analogous
#4C390F #404C0F #224C0F
triadic
#404C0F #0F404C #4C0F40
tetradic
#404C0F #0F4C39 #1B0F4C #4C0F22
square
#404C0F #0F4C39 #1B0F4C #4C0F22
split-complementary
#404C0F #0F224C #390F4C
monochromatic
#161A05 #161A05 #404C0F #6B7F19 #96B223

Accessibility & contrast

On white

9.30
#404C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#404C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404C0F
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404C0F#FFFFFF#000000##FFFFFF
##404C0F1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514704
Deuteranopia (green-blind)
#504714
Tritanopia (blue-blind)
#444840
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #404c0f;
/* rgb */ color: rgb(64, 76, 15);
/* oklch */ color: oklch(39.3% 0.084 120.2);
Tailwind
colors: {
  custom: {
    50: '#777e52',
    500: '#404c0f',
    950: '#000000',
  },
}
SCSS
$custom: #404c0f;
$custom-light: #777e52;
$custom-dark: #000000;
JSON
{
  "hex": "#404c0f",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 71.803,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.3929,
    "c": 0.0837,
    "h": 120.2
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#404C0F
secondary
#413186
accent
#3EEA60
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #404C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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