#40500F#40500F

#40500F is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.4% C 0.089 H 122.8°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#40500F
RGBrgb(64, 80, 15)
HSLhsl(75, 68%, 19%)
HSVhsv(75, 81%, 31%)
CMYKcmyk(20%, 0%, 81.3%, 68.6%)
CIE-LABlab(31.49, -16.49, 33.84)
CIE-LCHlch(31.49, 37.64, 115.98°)
OKLaboklab(40.38% -0.0483 0.075)
OKLCHoklch(40.38% 0.089 122.8)
XYZxyz(5.0693, 6.8618, 1.5092)
Luminance0.0686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40500F #1F0F50
analogous
#503F0F #40500F #1F500F
triadic
#40500F #0F4050 #500F40
tetradic
#40500F #0F503F #1F0F50 #500F1F
square
#40500F #0F503F #1F0F50 #500F1F
split-complementary
#40500F #0F1F50 #3F0F50
monochromatic
#151A05 #171C05 #40500F #698419 #92B722

Accessibility & contrast

On white

8.85
#40500F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#40500F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40500F
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40500F#FFFFFF#000000##FFFFFF
##40500F1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B03
Deuteranopia (green-blind)
#534A15
Tritanopia (blue-blind)
#444C44
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #40500f;
/* rgb */ color: rgb(64, 80, 15);
/* oklch */ color: oklch(40.4% 0.089 122.8);
Tailwind
colors: {
  custom: {
    50: '#778153',
    500: '#40500f',
    950: '#000000',
  },
}
SCSS
$custom: #40500f;
$custom-light: #778153;
$custom-dark: #000000;
JSON
{
  "hex": "#40500f",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 15
  },
  "hsl": {
    "h": 74.769,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.40378,
    "c": 0.08923,
    "h": 122.8
  },
  "luminance": 0.06862
}

Semantic roles & 50–950 ramp

primary
#40500F
secondary
#47318A
accent
#3DEB68
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #40500F

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

Preview Lab → · Contrast checker → · Palette generator →

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