#40470D#40470D

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

Color values

HEX#40470D
RGBrgb(64, 71, 13)
HSLhsl(67, 69%, 16%)
HSVhsv(67, 82%, 28%)
CMYKcmyk(9.9%, 0%, 81.7%, 72.2%)
CIE-LABlab(28.45, -11.50, 31.73)
CIE-LCHlch(28.45, 33.75, 109.93°)
OKLaboklab(37.92% -0.0347 0.0702)
OKLCHoklch(37.92% 0.078 116.3)
XYZxyz(4.4404, 5.6256, 1.2326)
Luminance0.0563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40470D #140D47
analogous
#47310D #40470D #23470D
triadic
#40470D #0D4047 #470D40
tetradic
#40470D #0D4731 #140D47 #470D23
square
#40470D #0D4731 #140D47 #470D23
split-complementary
#40470D #0D2347 #310D47
monochromatic
#171A05 #171A05 #40470D #6F7B16 #9DAE20

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40470D#FFFFFF#000000##FFFFFF
##40470D1.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)
#4D4303
Deuteranopia (green-blind)
#4C4312
Tritanopia (blue-blind)
#45423C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40470d;
/* rgb */ color: rgb(64, 71, 13);
/* oklch */ color: oklch(37.9% 0.078 116.3);
Tailwind
colors: {
  custom: {
    50: '#777a51',
    500: '#40470d',
    950: '#000000',
  },
}
SCSS
$custom: #40470d;
$custom-light: #777a51;
$custom-dark: #000000;
JSON
{
  "hex": "#40470d",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 13
  },
  "hsl": {
    "h": 67.241,
    "s": 69.048,
    "l": 16.471
  },
  "oklch": {
    "l": 0.37923,
    "c": 0.07833,
    "h": 116.3
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#40470D
secondary
#382D82
accent
#3CEC51
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40470D

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

Preview Lab → · Contrast checker → · Palette generator →

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