#40881A#40881A

#40881A is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 55.9% C 0.158 H 137.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#40881A
RGBrgb(64, 136, 26)
HSLhsl(99, 68%, 32%)
HSVhsv(99, 81%, 53%)
CMYKcmyk(52.9%, 0%, 80.9%, 46.7%)
CIE-LABlab(50.42, -41.86, 47.95)
CIE-LCHlch(50.42, 63.65, 131.12°)
OKLaboklab(55.87% -0.1161 0.1065)
OKLCHoklch(55.87% 0.158 137.5)
XYZxyz(11.1046, 18.7721, 4.0153)
Luminance0.1877 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40881A #621A88
analogous
#77881A #40881A #1A882B
triadic
#40881A #1A4088 #881A40
tetradic
#40881A #1A7788 #621A88 #882B1A
square
#40881A #1A7788 #621A88 #882B1A
split-complementary
#40881A #2B1A88 #881A77
monochromatic
#102106 #285510 #40881A #58BB24 #77DB42

Accessibility & contrast

On white

4.42
#40881A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#40881A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40881A
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40881A#FFFFFF#000000##000000
##40881A1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#837627
Tritanopia (blue-blind)
#3B8374
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #40881a;
/* rgb */ color: rgb(64, 136, 26);
/* oklch */ color: oklch(55.9% 0.158 137.5);
Tailwind
colors: {
  custom: {
    50: '#7dab60',
    500: '#40881a',
    950: '#000000',
  },
}
SCSS
$custom: #40881a;
$custom-light: #7dab60;
$custom-dark: #000000;
JSON
{
  "hex": "#40881a",
  "rgb": {
    "r": 64,
    "g": 136,
    "b": 26
  },
  "hsl": {
    "h": 99.273,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55871,
    "c": 0.15751,
    "h": 137.5
  },
  "luminance": 0.18773
}

Semantic roles & 50–950 ramp

primary
#40881A
secondary
#9243BB
accent
#3DEBAF
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40881A

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

Preview Lab → · Contrast checker → · Palette generator →

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