#40731E#40731E

#40731E is a mid, vivid yellow-green. Relative luminance 0.134; OKLCH L 50.1% C 0.128 H 135.5°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#40731E
RGBrgb(64, 115, 30)
HSLhsl(96, 59%, 28%)
HSVhsv(96, 74%, 45%)
CMYKcmyk(44.3%, 0%, 73.9%, 54.9%)
CIE-LABlab(43.43, -32.73, 39.62)
CIE-LCHlch(43.43, 51.40, 129.56°)
OKLaboklab(50.13% -0.0912 0.0897)
OKLCHoklch(50.13% 0.128 135.5)
XYZxyz(8.4792, 13.4447, 3.3763)
Luminance0.1344 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40731E #511E73
analogous
#6A731E #40731E #1E7326
triadic
#40731E #1E4073 #731E40
tetradic
#40731E #1E6A73 #511E73 #73261E
square
#40731E #1E6A73 #511E73 #73261E
split-complementary
#40731E #261E73 #731E6A
monochromatic
#0E1806 #254211 #40731E #5BA42B #77CD3F

Accessibility & contrast

On white

5.69
#40731E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#40731E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40731E
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40731E#FFFFFF#000000##FFFFFF
##40731E1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776910
Deuteranopia (green-blind)
#706526
Tritanopia (blue-blind)
#3E6F62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40731e;
/* rgb */ color: rgb(64, 115, 30);
/* oklch */ color: oklch(50.1% 0.128 135.5);
Tailwind
colors: {
  custom: {
    50: '#7a9c5f',
    500: '#40731e',
    950: '#000000',
  },
}
SCSS
$custom: #40731e;
$custom-light: #7a9c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40731e",
  "rgb": {
    "r": 64,
    "g": 115,
    "b": 30
  },
  "hsl": {
    "h": 96,
    "s": 58.621,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50132,
    "c": 0.12791,
    "h": 135.5
  },
  "luminance": 0.13445
}

Semantic roles & 50–950 ramp

primary
#40731E
secondary
#8046A7
accent
#46E2A3
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40731E

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

Preview Lab → · Contrast checker → · Palette generator →

#40731E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva