#40751A#40751A

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

Color values

HEX#40751A
RGBrgb(64, 117, 26)
HSLhsl(95, 64%, 28%)
HSVhsv(95, 78%, 46%)
CMYKcmyk(45.3%, 0%, 77.8%, 54.1%)
CIE-LABlab(44.07, -33.92, 41.84)
CIE-LCHlch(44.07, 53.86, 129.03°)
OKLaboklab(50.65% -0.0947 0.0937)
OKLCHoklch(50.65% 0.133 135.3)
XYZxyz(8.6619, 13.8866, 3.2011)
Luminance0.1389 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40751A #4F1A75
analogous
#6D751A #40751A #1A7521
triadic
#40751A #1A4075 #751A40
tetradic
#40751A #1A6D75 #4F1A75 #75211A
square
#40751A #1A6D75 #4F1A75 #75211A
split-complementary
#40751A #211A75 #751A6D
monochromatic
#0E1906 #25430F #40751A #5BA725 #78D337

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40751A#FFFFFF#000000##FFFFFF
##40751A1.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)
#7A6B07
Deuteranopia (green-blind)
#726723
Tritanopia (blue-blind)
#3E7064
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #40751a;
/* rgb */ color: rgb(64, 117, 26);
/* oklch */ color: oklch(50.7% 0.133 135.3);
Tailwind
colors: {
  custom: {
    50: '#7a9d5e',
    500: '#40751a',
    950: '#000000',
  },
}
SCSS
$custom: #40751a;
$custom-light: #7a9d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40751a",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 26
  },
  "hsl": {
    "h": 94.945,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50651,
    "c": 0.13322,
    "h": 135.3
  },
  "luminance": 0.13887
}

Semantic roles & 50–950 ramp

primary
#40751A
secondary
#7E41AA
accent
#41E7A2
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40751A

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

Preview Lab → · Contrast checker → · Palette generator →

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