#404C0C#404C0C

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

Color values

HEX#404C0C
RGBrgb(64, 76, 12)
HSLhsl(71, 73%, 17%)
HSVhsv(71, 84%, 30%)
CMYKcmyk(15.8%, 0%, 84.2%, 70.2%)
CIE-LABlab(30.12, -14.43, 33.69)
CIE-LCHlch(30.12, 36.65, 113.19°)
OKLaboklab(39.27% -0.0429 0.0741)
OKLCHoklch(39.27% 0.086 120.1)
XYZxyz(4.7652, 6.2854, 1.3099)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C0C #180C4C
analogous
#4C380C #404C0C #204C0C
triadic
#404C0C #0C404C #4C0C40
tetradic
#404C0C #0C4C38 #180C4C #4C0C20
square
#404C0C #0C4C38 #180C4C #4C0C20
split-complementary
#404C0C #0C204C #380C4C
monochromatic
#161A04 #161A04 #404C0C #6D8114 #99B61D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404C0C#FFFFFF#000000##FFFFFF
##404C0C1.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)
#514701
Deuteranopia (green-blind)
#504712
Tritanopia (blue-blind)
#444740
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #404c0c;
/* rgb */ color: rgb(64, 76, 12);
/* oklch */ color: oklch(39.3% 0.086 120.1);
Tailwind
colors: {
  custom: {
    50: '#777e51',
    500: '#404c0c',
    950: '#000000',
  },
}
SCSS
$custom: #404c0c;
$custom-light: #777e51;
$custom-dark: #000000;
JSON
{
  "hex": "#404c0c",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 12
  },
  "hsl": {
    "h": 71.25,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.39268,
    "c": 0.08567,
    "h": 120.1
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#404C0C
secondary
#3D2C88
accent
#38EF5B
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #404C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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