#404C0B#404C0B

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

Color values

HEX#404C0B
RGBrgb(64, 76, 11)
HSLhsl(71, 75%, 17%)
HSVhsv(71, 86%, 30%)
CMYKcmyk(15.8%, 0%, 85.5%, 70.2%)
CIE-LABlab(30.12, -14.48, 34.05)
CIE-LCHlch(30.12, 37.00, 113.04°)
OKLaboklab(39.26% -0.0431 0.0747)
OKLCHoklch(39.26% 0.086 120)
XYZxyz(4.7593, 6.2831, 1.2786)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C0B #170B4C
analogous
#4C380B #404C0B #204C0B
triadic
#404C0B #0B404C #4C0B40
tetradic
#404C0B #0B4C38 #170B4C #4C0B20
square
#404C0B #0B4C38 #170B4C #4C0B20
split-complementary
#404C0B #0B204C #380B4C
monochromatic
#171B04 #171B04 #404C0B #6D8113 #9AB71A

Accessibility & contrast

On white

9.31
#404C0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404C0B
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404C0B#FFFFFF#000000##FFFFFF
##404C0B1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514700
Deuteranopia (green-blind)
#504711
Tritanopia (blue-blind)
#444740
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #404c0b;
/* rgb */ color: rgb(64, 76, 11);
/* oklch */ color: oklch(39.3% 0.086 120.0);
Tailwind
colors: {
  custom: {
    50: '#777e50',
    500: '#404c0b',
    950: '#000000',
  },
}
SCSS
$custom: #404c0b;
$custom-light: #777e50;
$custom-dark: #000000;
JSON
{
  "hex": "#404c0b",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 11
  },
  "hsl": {
    "h": 71.077,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.39261,
    "c": 0.08627,
    "h": 120
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#404C0B
secondary
#3C2B88
accent
#36F159
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #404C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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