#40470F#40470F

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

Color values

HEX#40470F
RGBrgb(64, 71, 15)
HSLhsl(68, 65%, 17%)
HSVhsv(68, 79%, 28%)
CMYKcmyk(9.9%, 0%, 78.9%, 72.2%)
CIE-LABlab(28.46, -11.38, 30.90)
CIE-LCHlch(28.46, 32.93, 110.22°)
OKLaboklab(37.94% -0.0342 0.0689)
OKLCHoklch(37.94% 0.077 116.4)
XYZxyz(4.4539, 5.6310, 1.3041)
Luminance0.0563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40470F #160F47
analogous
#47320F #40470F #24470F
triadic
#40470F #0F4047 #470F40
tetradic
#40470F #0F4732 #160F47 #470F24
square
#40470F #0F4732 #160F47 #470F24
split-complementary
#40470F #0F2447 #320F47
monochromatic
#171905 #171905 #40470F #6E7A1A #9BAC24

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40470F#FFFFFF#000000##FFFFFF
##40470F1.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)
#4C4306
Deuteranopia (green-blind)
#4C4313
Tritanopia (blue-blind)
#45433C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40470f;
/* rgb */ color: rgb(64, 71, 15);
/* oklch */ color: oklch(37.9% 0.077 116.4);
Tailwind
colors: {
  custom: {
    50: '#777a52',
    500: '#40470f',
    950: '#000000',
  },
}
SCSS
$custom: #40470f;
$custom-light: #777a52;
$custom-dark: #000000;
JSON
{
  "hex": "#40470f",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 15
  },
  "hsl": {
    "h": 67.5,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.37939,
    "c": 0.07688,
    "h": 116.4
  },
  "luminance": 0.05631
}

Semantic roles & 50–950 ramp

primary
#40470F
secondary
#3B3081
accent
#40E855
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40470F

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

Preview Lab → · Contrast checker → · Palette generator →

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