#40731F#40731F

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

Color values

HEX#40731F
RGBrgb(64, 115, 31)
HSLhsl(96, 58%, 29%)
HSVhsv(96, 73%, 45%)
CMYKcmyk(44.3%, 0%, 73%, 54.9%)
CIE-LABlab(43.43, -32.65, 39.22)
CIE-LCHlch(43.43, 51.03, 129.78°)
OKLaboklab(50.14% -0.0909 0.089)
OKLCHoklch(50.14% 0.127 135.6)
XYZxyz(8.4922, 13.4499, 3.4447)
Luminance0.1345 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40731F #521F73
analogous
#6A731F #40731F #1F7328
triadic
#40731F #1F4073 #731F40
tetradic
#40731F #1F6A73 #521F73 #73281F
square
#40731F #1F6A73 #521F73 #73281F
split-complementary
#40731F #281F73 #731F6A
monochromatic
#0D1806 #254312 #40731F #5BA32C #77CC41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40731F#FFFFFF#000000##FFFFFF
##40731F1.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)
#776912
Deuteranopia (green-blind)
#706527
Tritanopia (blue-blind)
#3E6F62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40731f;
/* rgb */ color: rgb(64, 115, 31);
/* oklch */ color: oklch(50.1% 0.127 135.6);
Tailwind
colors: {
  custom: {
    50: '#7a9c60',
    500: '#40731f',
    950: '#000000',
  },
}
SCSS
$custom: #40731f;
$custom-light: #7a9c60;
$custom-dark: #000000;
JSON
{
  "hex": "#40731f",
  "rgb": {
    "r": 64,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 96.429,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50141,
    "c": 0.12721,
    "h": 135.6
  },
  "luminance": 0.1345
}

Semantic roles & 50–950 ramp

primary
#40731F
secondary
#8147A7
accent
#47E1A4
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40731F

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

Preview Lab → · Contrast checker → · Palette generator →

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