#40490F#40490F

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

Color values

HEX#40490F
RGBrgb(64, 73, 15)
HSLhsl(69, 66%, 17%)
HSVhsv(69, 79%, 29%)
CMYKcmyk(12.3%, 0%, 79.5%, 71.4%)
CIE-LABlab(29.13, -12.55, 31.56)
CIE-LCHlch(29.13, 33.96, 111.68°)
OKLaboklab(38.48% -0.0374 0.0702)
OKLCHoklch(38.48% 0.08 118)
XYZxyz(4.5832, 5.8896, 1.3472)
Luminance0.0589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40490F #180F49
analogous
#49350F #40490F #23490F
triadic
#40490F #0F4049 #490F40
tetradic
#40490F #0F4935 #180F49 #490F23
square
#40490F #0F4935 #180F49 #490F23
split-complementary
#40490F #0F2349 #350F49
monochromatic
#161905 #161905 #40490F #6D7C19 #99AF24

Accessibility & contrast

On white

9.64
#40490F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40490F
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40490F#FFFFFF#000000##FFFFFF
##40490F1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4505
Deuteranopia (green-blind)
#4D4514
Tritanopia (blue-blind)
#44453E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40490f;
/* rgb */ color: rgb(64, 73, 15);
/* oklch */ color: oklch(38.5% 0.080 118.0);
Tailwind
colors: {
  custom: {
    50: '#777b52',
    500: '#40490f',
    950: '#000000',
  },
}
SCSS
$custom: #40490f;
$custom-light: #777b52;
$custom-dark: #000000;
JSON
{
  "hex": "#40490f",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 15
  },
  "hsl": {
    "h": 69.31,
    "s": 65.909,
    "l": 17.255
  },
  "oklch": {
    "l": 0.38478,
    "c": 0.07958,
    "h": 118
  },
  "luminance": 0.0589
}

Semantic roles & 50–950 ramp

primary
#40490F
secondary
#3D3083
accent
#3FE959
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40490F

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

Preview Lab → · Contrast checker → · Palette generator →

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