#40731A#40731A

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

Color values

HEX#40731A
RGBrgb(64, 115, 26)
HSLhsl(94, 63%, 28%)
HSVhsv(94, 77%, 45%)
CMYKcmyk(44.3%, 0%, 77.4%, 54.9%)
CIE-LABlab(43.40, -33.03, 41.18)
CIE-LCHlch(43.40, 52.79, 128.73°)
OKLaboklab(50.1% -0.0923 0.0923)
OKLCHoklch(50.1% 0.131 135)
XYZxyz(8.4314, 13.4256, 3.1242)
Luminance0.1343 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40731A #4D1A73
analogous
#6D731A #40731A #1A7320
triadic
#40731A #1A4073 #731A40
tetradic
#40731A #1A6D73 #4D1A73 #73201A
square
#40731A #1A6D73 #4D1A73 #73201A
split-complementary
#40731A #201A73 #731A6D
monochromatic
#0E1906 #24410F #40731A #5CA525 #78D236

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40731A#FFFFFF#000000##FFFFFF
##40731A1.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)
#786908
Deuteranopia (green-blind)
#716523
Tritanopia (blue-blind)
#3F6E62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #40731a;
/* rgb */ color: rgb(64, 115, 26);
/* oklch */ color: oklch(50.1% 0.131 135.0);
Tailwind
colors: {
  custom: {
    50: '#7a9c5d',
    500: '#40731a',
    950: '#000000',
  },
}
SCSS
$custom: #40731a;
$custom-light: #7a9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#40731a",
  "rgb": {
    "r": 64,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 94.382,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.501,
    "c": 0.13056,
    "h": 135
  },
  "luminance": 0.13426
}

Semantic roles & 50–950 ramp

primary
#40731A
secondary
#7C41A8
accent
#42E6A0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40731A

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

Preview Lab → · Contrast checker → · Palette generator →

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