#40470A#40470A

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

Color values

HEX#40470A
RGBrgb(64, 71, 10)
HSLhsl(67, 75%, 16%)
HSVhsv(67, 86%, 28%)
CMYKcmyk(9.9%, 0%, 85.9%, 72.2%)
CIE-LABlab(28.43, -11.67, 32.87)
CIE-LCHlch(28.43, 34.87, 109.54°)
OKLaboklab(37.9% -0.0355 0.072)
OKLCHoklch(37.9% 0.08 116.2)
XYZxyz(4.4225, 5.6184, 1.1386)
Luminance0.0562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40470A #110A47
analogous
#472F0A #40470A #21470A
triadic
#40470A #0A4047 #470A40
tetradic
#40470A #0A472F #110A47 #470A21
square
#40470A #0A472F #110A47 #470A21
split-complementary
#40470A #0A2147 #2F0A47
monochromatic
#181B04 #181B04 #40470A #707D12 #A1B219

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40470A#FFFFFF#000000##FFFFFF
##40470A1.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)
#4D4300
Deuteranopia (green-blind)
#4C4310
Tritanopia (blue-blind)
#45423C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40470a;
/* rgb */ color: rgb(64, 71, 10);
/* oklch */ color: oklch(37.9% 0.080 116.2);
Tailwind
colors: {
  custom: {
    50: '#777a4f',
    500: '#40470a',
    950: '#000000',
  },
}
SCSS
$custom: #40470a;
$custom-light: #777a4f;
$custom-dark: #000000;
JSON
{
  "hex": "#40470a",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 10
  },
  "hsl": {
    "h": 66.885,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.37902,
    "c": 0.08027,
    "h": 116.2
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#40470A
secondary
#332984
accent
#36F24B
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40470A

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

Preview Lab → · Contrast checker → · Palette generator →

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