#40490C#40490C

#40490C is a dark, moderate yellow. Relative luminance 0.059; OKLCH L 38.5% C 0.082 H 117.9°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#40490C
RGBrgb(64, 73, 12)
HSLhsl(69, 72%, 17%)
HSVhsv(69, 84%, 29%)
CMYKcmyk(12.3%, 0%, 83.6%, 71.4%)
CIE-LABlab(29.11, -12.72, 32.75)
CIE-LCHlch(29.11, 35.13, 111.23°)
OKLaboklab(38.46% -0.0382 0.0722)
OKLCHoklch(38.46% 0.082 117.9)
XYZxyz(4.5634, 5.8817, 1.2426)
Luminance0.0588 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40490C #150C49
analogous
#49340C #40490C #22490C
triadic
#40490C #0C4049 #490C40
tetradic
#40490C #0C4934 #150C49 #490C22
square
#40490C #0C4934 #150C49 #490C22
split-complementary
#40490C #0C2249 #340C49
monochromatic
#171A04 #171A04 #40490C #6E7E15 #9CB21D

Accessibility & contrast

On white

9.65
#40490C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#40490C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40490C
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40490C#FFFFFF#000000##FFFFFF
##40490C1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4402
Deuteranopia (green-blind)
#4E4511
Tritanopia (blue-blind)
#44443E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40490c;
/* rgb */ color: rgb(64, 73, 12);
/* oklch */ color: oklch(38.5% 0.082 117.9);
Tailwind
colors: {
  custom: {
    50: '#777b50',
    500: '#40490c',
    950: '#000000',
  },
}
SCSS
$custom: #40490c;
$custom-light: #777b50;
$custom-dark: #000000;
JSON
{
  "hex": "#40490c",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 12
  },
  "hsl": {
    "h": 68.852,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.38455,
    "c": 0.08165,
    "h": 117.9
  },
  "luminance": 0.05882
}

Semantic roles & 50–950 ramp

primary
#40490C
secondary
#392C85
accent
#39EE54
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40490C

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

Preview Lab → · Contrast checker → · Palette generator →

#40490C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva