#40711D#40711D

#40711D is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.6% C 0.126 H 135.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#40711D
RGBrgb(64, 113, 29)
HSLhsl(95, 59%, 28%)
HSVhsv(95, 74%, 44%)
CMYKcmyk(43.4%, 0%, 74.3%, 55.7%)
CIE-LABlab(42.75, -31.91, 39.34)
CIE-LCHlch(42.75, 50.66, 129.05°)
OKLaboklab(49.57% -0.0891 0.0889)
OKLCHoklch(49.57% 0.126 135)
XYZxyz(8.2411, 12.9885, 3.2350)
Luminance0.1299 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40711D #4E1D71
analogous
#6A711D #40711D #1D7124
triadic
#40711D #1D4071 #711D40
tetradic
#40711D #1D6A71 #4E1D71 #71241D
square
#40711D #1D6A71 #4E1D71 #71241D
split-complementary
#40711D #241D71 #711D6A
monochromatic
#0E1806 #244011 #40711D #5CA229 #78CD3C

Accessibility & contrast

On white

5.84
#40711D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#40711D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40711D
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40711D#FFFFFF#000000##FFFFFF
##40711D1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75670F
Deuteranopia (green-blind)
#6F6325
Tritanopia (blue-blind)
#3F6D60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #40711d;
/* rgb */ color: rgb(64, 113, 29);
/* oklch */ color: oklch(49.6% 0.126 135.0);
Tailwind
colors: {
  custom: {
    50: '#799a5f',
    500: '#40711d',
    950: '#000000',
  },
}
SCSS
$custom: #40711d;
$custom-light: #799a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40711d",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 29
  },
  "hsl": {
    "h": 95,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49573,
    "c": 0.12587,
    "h": 135
  },
  "luminance": 0.12989
}

Semantic roles & 50–950 ramp

primary
#40711D
secondary
#7D44A5
accent
#45E2A1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40711D

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

Preview Lab → · Contrast checker → · Palette generator →

#40711D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva