#40470C#40470C

#40470C is a dark, moderate yellow. Relative luminance 0.056; OKLCH L 37.9% C 0.079 H 116.3°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#40470C
RGBrgb(64, 71, 12)
HSLhsl(67, 71%, 16%)
HSVhsv(67, 83%, 28%)
CMYKcmyk(9.9%, 0%, 83.1%, 72.2%)
CIE-LABlab(28.44, -11.56, 32.12)
CIE-LCHlch(28.44, 34.14, 109.80°)
OKLaboklab(37.92% -0.035 0.0708)
OKLCHoklch(37.92% 0.079 116.3)
XYZxyz(4.4341, 5.6231, 1.1995)
Luminance0.0562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40470C #130C47
analogous
#47310C #40470C #23470C
triadic
#40470C #0C4047 #470C40
tetradic
#40470C #0C4731 #130C47 #470C23
square
#40470C #0C4731 #130C47 #470C23
split-complementary
#40470C #0C2347 #310C47
monochromatic
#181A04 #181A04 #40470C #6F7B15 #9EB01E

Accessibility & contrast

On white

9.88
#40470C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#40470C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40470C
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40470C#FFFFFF#000000##FFFFFF
##40470C1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4302
Deuteranopia (green-blind)
#4C4311
Tritanopia (blue-blind)
#45423C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40470c;
/* rgb */ color: rgb(64, 71, 12);
/* oklch */ color: oklch(37.9% 0.079 116.3);
Tailwind
colors: {
  custom: {
    50: '#777a50',
    500: '#40470c',
    950: '#000000',
  },
}
SCSS
$custom: #40470c;
$custom-light: #777a50;
$custom-dark: #000000;
JSON
{
  "hex": "#40470c",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 12
  },
  "hsl": {
    "h": 67.119,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.37915,
    "c": 0.07901,
    "h": 116.3
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#40470C
secondary
#362C83
accent
#3AEE4F
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40470C

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

Preview Lab → · Contrast checker → · Palette generator →

#40470C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva