#40881B#40881B

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

Color values

HEX#40881B
RGBrgb(64, 136, 27)
HSLhsl(100, 67%, 32%)
HSVhsv(100, 80%, 53%)
CMYKcmyk(52.9%, 0%, 80.1%, 46.7%)
CIE-LABlab(50.42, -41.80, 47.63)
CIE-LCHlch(50.42, 63.37, 131.27°)
OKLaboklab(55.88% -0.1159 0.106)
OKLCHoklch(55.88% 0.157 137.6)
XYZxyz(11.1160, 18.7766, 4.0752)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40881B #631B88
analogous
#77881B #40881B #1B882D
triadic
#40881B #1B4088 #881B40
tetradic
#40881B #1B7788 #631B88 #882D1B
square
#40881B #1B7788 #631B88 #882D1B
split-complementary
#40881B #2D1B88 #881B77
monochromatic
#102207 #285511 #40881B #58BB25 #77DA44

Accessibility & contrast

On white

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

On black

4.76
#40881B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40881B
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40881B#FFFFFF#000000##000000
##40881B1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.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: #40881b;
/* rgb */ color: rgb(64, 136, 27);
/* oklch */ color: oklch(55.9% 0.157 137.6);
Tailwind
colors: {
  custom: {
    50: '#7dab61',
    500: '#40881b',
    950: '#000000',
  },
}
SCSS
$custom: #40881b;
$custom-light: #7dab61;
$custom-dark: #000000;
JSON
{
  "hex": "#40881b",
  "rgb": {
    "r": 64,
    "g": 136,
    "b": 27
  },
  "hsl": {
    "h": 99.633,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55877,
    "c": 0.157,
    "h": 137.6
  },
  "luminance": 0.18777
}

Semantic roles & 50–950 ramp

primary
#40881B
secondary
#9344BB
accent
#3EEAAF
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40881B

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

Preview Lab → · Contrast checker → · Palette generator →

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