#40470E#40470E

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

Color values

HEX#40470E
RGBrgb(64, 71, 14)
HSLhsl(67, 67%, 17%)
HSVhsv(67, 80%, 28%)
CMYKcmyk(9.9%, 0%, 80.3%, 72.2%)
CIE-LABlab(28.45, -11.44, 31.32)
CIE-LCHlch(28.45, 33.34, 110.07°)
OKLaboklab(37.93% -0.0345 0.0695)
OKLCHoklch(37.93% 0.078 116.4)
XYZxyz(4.4470, 5.6282, 1.2675)
Luminance0.0563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40470E #150E47
analogous
#47320E #40470E #24470E
triadic
#40470E #0E4047 #470E40
tetradic
#40470E #0E4732 #150E47 #470E24
square
#40470E #0E4732 #150E47 #470E24
split-complementary
#40470E #0E2447 #320E47
monochromatic
#171A05 #171A05 #40470E #6E7A18 #9CAD22

Accessibility & contrast

On white

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

On black

2.13
#40470E on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40470E#FFFFFF#000000##FFFFFF
##40470E1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40470e;
/* rgb */ color: rgb(64, 71, 14);
/* oklch */ color: oklch(37.9% 0.078 116.4);
Tailwind
colors: {
  custom: {
    50: '#777a51',
    500: '#40470e',
    950: '#000000',
  },
}
SCSS
$custom: #40470e;
$custom-light: #777a51;
$custom-dark: #000000;
JSON
{
  "hex": "#40470e",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 14
  },
  "hsl": {
    "h": 67.368,
    "s": 67.059,
    "l": 16.667
  },
  "oklch": {
    "l": 0.37931,
    "c": 0.07761,
    "h": 116.4
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#40470E
secondary
#392F82
accent
#3EEA53
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40470E

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

Preview Lab → · Contrast checker → · Palette generator →

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