#40711F#40711F

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

Color values

HEX#40711F
RGBrgb(64, 113, 31)
HSLhsl(96, 57%, 28%)
HSVhsv(96, 73%, 44%)
CMYKcmyk(43.4%, 0%, 72.6%, 55.7%)
CIE-LABlab(42.76, -31.75, 38.52)
CIE-LCHlch(42.76, 49.92, 129.50°)
OKLaboklab(49.59% -0.0885 0.0875)
OKLCHoklch(49.59% 0.124 135.3)
XYZxyz(8.2666, 12.9987, 3.3695)
Luminance0.1300 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40711F #501F71
analogous
#69711F #40711F #1F7127
triadic
#40711F #1F4071 #711F40
tetradic
#40711F #1F6971 #501F71 #71271F
square
#40711F #1F6971 #501F71 #71271F
split-complementary
#40711F #271F71 #711F69
monochromatic
#0E1807 #254112 #40711F #5BA12C #78CB40

Accessibility & contrast

On white

5.83
#40711F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40711F
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40711F#FFFFFF#000000##FFFFFF
##40711F1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756812
Deuteranopia (green-blind)
#6F6326
Tritanopia (blue-blind)
#3F6D61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #40711f;
/* rgb */ color: rgb(64, 113, 31);
/* oklch */ color: oklch(49.6% 0.124 135.3);
Tailwind
colors: {
  custom: {
    50: '#799a60',
    500: '#40711f',
    950: '#000000',
  },
}
SCSS
$custom: #40711f;
$custom-light: #799a60;
$custom-dark: #000000;
JSON
{
  "hex": "#40711f",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 31
  },
  "hsl": {
    "h": 95.854,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.4959,
    "c": 0.12445,
    "h": 135.3
  },
  "luminance": 0.12999
}

Semantic roles & 50–950 ramp

primary
#40711F
secondary
#7F47A5
accent
#48E0A3
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40711F

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

Preview Lab → · Contrast checker → · Palette generator →

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