#40751F#40751F

#40751F is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.7% C 0.130 H 135.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#40751F
RGBrgb(64, 117, 31)
HSLhsl(97, 58%, 29%)
HSVhsv(97, 74%, 46%)
CMYKcmyk(45.3%, 0%, 73.5%, 54.1%)
CIE-LABlab(44.10, -33.54, 39.91)
CIE-LCHlch(44.10, 52.13, 130.05°)
OKLaboklab(50.69% -0.0933 0.0904)
OKLCHoklch(50.69% 0.13 135.9)
XYZxyz(8.7227, 13.9110, 3.5215)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40751F #541F75
analogous
#6B751F #40751F #1F7529
triadic
#40751F #1F4075 #751F40
tetradic
#40751F #1F6B75 #541F75 #75291F
square
#40751F #1F6B75 #541F75 #75291F
split-complementary
#40751F #291F75 #751F6B
monochromatic
#0D1806 #264512 #40751F #5AA52C #77CD42

Accessibility & contrast

On white

5.55
#40751F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#40751F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40751F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40751F#FFFFFF#000000##FFFFFF
##40751F1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B11
Deuteranopia (green-blind)
#726727
Tritanopia (blue-blind)
#3E7164
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #40751f;
/* rgb */ color: rgb(64, 117, 31);
/* oklch */ color: oklch(50.7% 0.130 135.9);
Tailwind
colors: {
  custom: {
    50: '#7a9d60',
    500: '#40751f',
    950: '#000000',
  },
}
SCSS
$custom: #40751f;
$custom-light: #7a9d60;
$custom-dark: #000000;
JSON
{
  "hex": "#40751f",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 31
  },
  "hsl": {
    "h": 96.977,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50691,
    "c": 0.12994,
    "h": 135.9
  },
  "luminance": 0.13911
}

Semantic roles & 50–950 ramp

primary
#40751F
secondary
#8347A9
accent
#46E1A6
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40751F

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

Preview Lab → · Contrast checker → · Palette generator →

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