#40470B#40470B

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

Color values

HEX#40470B
RGBrgb(64, 71, 11)
HSLhsl(67, 73%, 16%)
HSVhsv(67, 85%, 28%)
CMYKcmyk(9.9%, 0%, 84.5%, 72.2%)
CIE-LABlab(28.43, -11.62, 32.50)
CIE-LCHlch(28.43, 34.51, 109.67°)
OKLaboklab(37.91% -0.0352 0.0714)
OKLCHoklch(37.91% 0.08 116.3)
XYZxyz(4.4281, 5.6207, 1.1682)
Luminance0.0562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40470B #120B47
analogous
#47300B #40470B #22470B
triadic
#40470B #0B4047 #470B40
tetradic
#40470B #0B4730 #120B47 #470B22
square
#40470B #0B4730 #120B47 #470B22
split-complementary
#40470B #0B2247 #300B47
monochromatic
#181A04 #181A04 #40470B #707C13 #A0B11B

Accessibility & contrast

On white

9.89
#40470B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40470B
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40470B#FFFFFF#000000##FFFFFF
##40470B1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40470b;
/* rgb */ color: rgb(64, 71, 11);
/* oklch */ color: oklch(37.9% 0.080 116.3);
Tailwind
colors: {
  custom: {
    50: '#777a50',
    500: '#40470b',
    950: '#000000',
  },
}
SCSS
$custom: #40470b;
$custom-light: #777a50;
$custom-dark: #000000;
JSON
{
  "hex": "#40470b",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 11
  },
  "hsl": {
    "h": 67,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.37908,
    "c": 0.07965,
    "h": 116.3
  },
  "luminance": 0.05621
}

Semantic roles & 50–950 ramp

primary
#40470B
secondary
#352A83
accent
#38F04D
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40470B

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

Preview Lab → · Contrast checker → · Palette generator →

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