#404812#404812

#404812 is a dark, moderate yellow. Relative luminance 0.058; OKLCH L 38.2% C 0.076 H 117.4°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#404812
RGBrgb(64, 72, 18)
HSLhsl(69, 60%, 18%)
HSVhsv(69, 75%, 28%)
CMYKcmyk(11.1%, 0%, 75%, 71.8%)
CIE-LABlab(28.82, -11.76, 29.91)
CIE-LCHlch(28.82, 32.14, 111.47°)
OKLaboklab(38.24% -0.0349 0.0673)
OKLCHoklch(38.24% 0.076 117.4)
XYZxyz(4.5410, 5.7684, 1.4464)
Luminance0.0577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404812 #1A1248
analogous
#483512 #404812 #254812
triadic
#404812 #124048 #481240
tetradic
#404812 #124835 #1A1248 #481225
square
#404812 #124835 #1A1248 #481225
split-complementary
#404812 #122548 #351248
monochromatic
#161806 #161806 #404812 #6C791E #97AA2A

Accessibility & contrast

On white

9.75
#404812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#404812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404812
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404812#FFFFFF#000000##FFFFFF
##4048121.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D440A
Deuteranopia (green-blind)
#4C4416
Tritanopia (blue-blind)
#44443D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #404812;
/* rgb */ color: rgb(64, 72, 18);
/* oklch */ color: oklch(38.2% 0.076 117.4);
Tailwind
colors: {
  custom: {
    50: '#777a53',
    500: '#404812',
    950: '#000000',
  },
}
SCSS
$custom: #404812;
$custom-light: #777a53;
$custom-dark: #000000;
JSON
{
  "hex": "#404812",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 68.889,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.38235,
    "c": 0.07586,
    "h": 117.4
  },
  "luminance": 0.05768
}

Semantic roles & 50–950 ramp

primary
#404812
secondary
#403581
accent
#45E35C
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090903
muted
#7B7B78

Preview Lab

Preview with #404812

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

Preview Lab → · Contrast checker → · Palette generator →

#404812 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva