#40751E#40751E

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

Color values

HEX#40751E
RGBrgb(64, 117, 30)
HSLhsl(97, 59%, 29%)
HSVhsv(97, 74%, 46%)
CMYKcmyk(45.3%, 0%, 74.4%, 54.1%)
CIE-LABlab(44.10, -33.62, 40.31)
CIE-LCHlch(44.10, 52.49, 129.83°)
OKLaboklab(50.68% -0.0936 0.0911)
OKLCHoklch(50.68% 0.131 135.8)
XYZxyz(8.7098, 13.9058, 3.4532)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40751E #531E75
analogous
#6C751E #40751E #1E7528
triadic
#40751E #1E4075 #751E40
tetradic
#40751E #1E6C75 #531E75 #75281E
square
#40751E #1E6C75 #531E75 #75281E
split-complementary
#40751E #281E75 #751E6C
monochromatic
#0D1806 #254412 #40751E #5BA62A #77CE40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40751E#FFFFFF#000000##FFFFFF
##40751E1.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)
#796B0F
Deuteranopia (green-blind)
#726726
Tritanopia (blue-blind)
#3E7064
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #40751e;
/* rgb */ color: rgb(64, 117, 30);
/* oklch */ color: oklch(50.7% 0.131 135.8);
Tailwind
colors: {
  custom: {
    50: '#7a9d60',
    500: '#40751e',
    950: '#000000',
  },
}
SCSS
$custom: #40751e;
$custom-light: #7a9d60;
$custom-dark: #000000;
JSON
{
  "hex": "#40751e",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 30
  },
  "hsl": {
    "h": 96.552,
    "s": 59.184,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50683,
    "c": 0.13064,
    "h": 135.8
  },
  "luminance": 0.13906
}

Semantic roles & 50–950 ramp

primary
#40751E
secondary
#8246A9
accent
#45E2A5
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40751E

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

Preview Lab → · Contrast checker → · Palette generator →

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