#40731C#40731C

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

Color values

HEX#40731C
RGBrgb(64, 115, 28)
HSLhsl(95, 61%, 28%)
HSVhsv(95, 76%, 45%)
CMYKcmyk(44.3%, 0%, 75.7%, 54.9%)
CIE-LABlab(43.41, -32.89, 40.42)
CIE-LCHlch(43.41, 52.11, 129.13°)
OKLaboklab(50.12% -0.0918 0.091)
OKLCHoklch(50.12% 0.129 135.2)
XYZxyz(8.4545, 13.4348, 3.2461)
Luminance0.1343 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40731C #4F1C73
analogous
#6B731C #40731C #1C7323
triadic
#40731C #1C4073 #731C40
tetradic
#40731C #1C6B73 #4F1C73 #73231C
square
#40731C #1C6B73 #4F1C73 #73231C
split-complementary
#40731C #231C73 #731C6B
monochromatic
#0E1906 #254210 #40731C #5BA428 #78CF3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #40731c;
/* rgb */ color: rgb(64, 115, 28);
/* oklch */ color: oklch(50.1% 0.129 135.2);
Tailwind
colors: {
  custom: {
    50: '#7a9c5e',
    500: '#40731c',
    950: '#000000',
  },
}
SCSS
$custom: #40731c;
$custom-light: #7a9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40731c",
  "rgb": {
    "r": 64,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 95.172,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50116,
    "c": 0.12927,
    "h": 135.2
  },
  "luminance": 0.13435
}

Semantic roles & 50–950 ramp

primary
#40731C
secondary
#7E43A7
accent
#44E4A2
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40731C

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

Preview Lab → · Contrast checker → · Palette generator →

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