#40731B#40731B

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

Color values

HEX#40731B
RGBrgb(64, 115, 27)
HSLhsl(95, 62%, 28%)
HSVhsv(95, 77%, 45%)
CMYKcmyk(44.3%, 0%, 76.5%, 54.9%)
CIE-LABlab(43.40, -32.96, 40.80)
CIE-LCHlch(43.40, 52.45, 128.93°)
OKLaboklab(50.11% -0.0921 0.0917)
OKLCHoklch(50.11% 0.13 135.1)
XYZxyz(8.4427, 13.4301, 3.1841)
Luminance0.1343 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40731B #4E1B73
analogous
#6C731B #40731B #1B7322
triadic
#40731B #1B4073 #731B40
tetradic
#40731B #1B6C73 #4E1B73 #73221B
square
#40731B #1B6C73 #4E1B73 #73221B
split-complementary
#40731B #221B73 #731B6C
monochromatic
#0E1906 #24410F #40731B #5CA527 #78D038

Accessibility & contrast

On white

5.70
#40731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40731B
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40731B#FFFFFF#000000##FFFFFF
##40731B1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77690A
Deuteranopia (green-blind)
#716524
Tritanopia (blue-blind)
#3F6E62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40731b;
/* rgb */ color: rgb(64, 115, 27);
/* oklch */ color: oklch(50.1% 0.130 135.1);
Tailwind
colors: {
  custom: {
    50: '#7a9c5e',
    500: '#40731b',
    950: '#000000',
  },
}
SCSS
$custom: #40731b;
$custom-light: #7a9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40731b",
  "rgb": {
    "r": 64,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 94.773,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50108,
    "c": 0.12992,
    "h": 135.1
  },
  "luminance": 0.13431
}

Semantic roles & 50–950 ramp

primary
#40731B
secondary
#7D42A8
accent
#43E5A1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40731B

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

Preview Lab → · Contrast checker → · Palette generator →

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