#40480F#40480F

#40480F is a dark, moderate yellow. Relative luminance 0.058; OKLCH L 38.2% C 0.078 H 117.2°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#40480F
RGBrgb(64, 72, 15)
HSLhsl(68, 66%, 17%)
HSVhsv(68, 79%, 28%)
CMYKcmyk(11.1%, 0%, 79.2%, 71.8%)
CIE-LABlab(28.80, -11.97, 31.23)
CIE-LCHlch(28.80, 33.44, 110.97°)
OKLaboklab(38.21% -0.0358 0.0696)
OKLCHoklch(38.21% 0.078 117.2)
XYZxyz(4.5180, 5.7593, 1.3255)
Luminance0.0576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40480F #170F48
analogous
#48340F #40480F #24480F
triadic
#40480F #0F4048 #480F40
tetradic
#40480F #0F4834 #170F48 #480F24
square
#40480F #0F4834 #170F48 #480F24
split-complementary
#40480F #0F2448 #340F48
monochromatic
#171905 #171905 #40480F #6D7B1A #9AAD24

Accessibility & contrast

On white

9.76
#40480F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#40480F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40480F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40480F#FFFFFF#000000##FFFFFF
##40480F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4406
Deuteranopia (green-blind)
#4D4414
Tritanopia (blue-blind)
#44443D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40480f;
/* rgb */ color: rgb(64, 72, 15);
/* oklch */ color: oklch(38.2% 0.078 117.2);
Tailwind
colors: {
  custom: {
    50: '#777a52',
    500: '#40480f',
    950: '#000000',
  },
}
SCSS
$custom: #40480f;
$custom-light: #777a52;
$custom-dark: #000000;
JSON
{
  "hex": "#40480f",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 15
  },
  "hsl": {
    "h": 68.421,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.38208,
    "c": 0.07823,
    "h": 117.2
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#40480F
secondary
#3C3082
accent
#3FE857
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090902
muted
#7B7B78

Preview Lab

Preview with #40480F

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

Preview Lab → · Contrast checker → · Palette generator →

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