#40751D#40751D

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

Color values

HEX#40751D
RGBrgb(64, 117, 29)
HSLhsl(96, 60%, 29%)
HSVhsv(96, 75%, 46%)
CMYKcmyk(45.3%, 0%, 75.2%, 54.1%)
CIE-LABlab(44.09, -33.70, 40.70)
CIE-LCHlch(44.09, 52.84, 129.62°)
OKLaboklab(50.67% -0.0939 0.0918)
OKLCHoklch(50.67% 0.131 135.6)
XYZxyz(8.6972, 13.9008, 3.3870)
Luminance0.1390 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40751D #521D75
analogous
#6C751D #40751D #1D7526
triadic
#40751D #1D4075 #751D40
tetradic
#40751D #1D6C75 #521D75 #75261D
square
#40751D #1D6C75 #521D75 #75261D
split-complementary
#40751D #261D75 #751D6C
monochromatic
#0D1906 #254411 #40751D #5BA629 #77CF3D

Accessibility & contrast

On white

5.56
#40751D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40751D
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40751D#FFFFFF#000000##FFFFFF
##40751D1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B0D
Deuteranopia (green-blind)
#726725
Tritanopia (blue-blind)
#3E7064
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #40751d;
/* rgb */ color: rgb(64, 117, 29);
/* oklch */ color: oklch(50.7% 0.131 135.6);
Tailwind
colors: {
  custom: {
    50: '#7a9d5f',
    500: '#40751d',
    950: '#000000',
  },
}
SCSS
$custom: #40751d;
$custom-light: #7a9d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40751d",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 29
  },
  "hsl": {
    "h": 96.136,
    "s": 60.274,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50674,
    "c": 0.1313,
    "h": 135.6
  },
  "luminance": 0.13901
}

Semantic roles & 50–950 ramp

primary
#40751D
secondary
#8145A9
accent
#44E3A4
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40751D

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

Preview Lab → · Contrast checker → · Palette generator →

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