#40731D#40731D

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

Color values

HEX#40731D
RGBrgb(64, 115, 29)
HSLhsl(96, 60%, 28%)
HSVhsv(96, 75%, 45%)
CMYKcmyk(44.3%, 0%, 74.8%, 54.9%)
CIE-LABlab(43.42, -32.81, 40.02)
CIE-LCHlch(43.42, 51.75, 129.34°)
OKLaboklab(50.12% -0.0915 0.0904)
OKLCHoklch(50.12% 0.129 135.4)
XYZxyz(8.4667, 13.4397, 3.3102)
Luminance0.1344 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40731D #501D73
analogous
#6B731D #40731D #1D7325
triadic
#40731D #1D4073 #731D40
tetradic
#40731D #1D6B73 #501D73 #73251D
square
#40731D #1D6B73 #501D73 #73251D
split-complementary
#40731D #251D73 #731D6B
monochromatic
#0E1806 #254211 #40731D #5BA429 #78CE3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40731D#FFFFFF#000000##FFFFFF
##40731D1.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)
#77690E
Deuteranopia (green-blind)
#716525
Tritanopia (blue-blind)
#3F6E62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40731d;
/* rgb */ color: rgb(64, 115, 29);
/* oklch */ color: oklch(50.1% 0.129 135.4);
Tailwind
colors: {
  custom: {
    50: '#7a9c5f',
    500: '#40731d',
    950: '#000000',
  },
}
SCSS
$custom: #40731d;
$custom-light: #7a9c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40731d",
  "rgb": {
    "r": 64,
    "g": 115,
    "b": 29
  },
  "hsl": {
    "h": 95.581,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50124,
    "c": 0.1286,
    "h": 135.4
  },
  "luminance": 0.1344
}

Semantic roles & 50–950 ramp

primary
#40731D
secondary
#7F45A7
accent
#45E3A3
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40731D

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

Preview Lab → · Contrast checker → · Palette generator →

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