#40871A#40871A

#40871A is a mid, vivid yellow-green. Relative luminance 0.185; OKLCH L 55.6% C 0.156 H 137.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#40871A
RGBrgb(64, 135, 26)
HSLhsl(99, 68%, 32%)
HSVhsv(99, 81%, 53%)
CMYKcmyk(52.6%, 0%, 80.7%, 47.1%)
CIE-LABlab(50.09, -41.46, 47.63)
CIE-LCHlch(50.09, 63.15, 131.04°)
OKLaboklab(55.6% -0.115 0.1058)
OKLCHoklch(55.6% 0.156 137.4)
XYZxyz(10.9644, 18.4917, 3.9686)
Luminance0.1849 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40871A #611A87
analogous
#77871A #40871A #1A872B
triadic
#40871A #1A4087 #871A40
tetradic
#40871A #1A7787 #611A87 #872B1A
square
#40871A #1A7787 #611A87 #872B1A
split-complementary
#40871A #2B1A87 #871A77
monochromatic
#0F2006 #285410 #40871A #58BA24 #76DA41

Accessibility & contrast

On white

4.47
#40871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#40871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40871A
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40871A#FFFFFF#000000##000000
##40871A1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#827526
Tritanopia (blue-blind)
#3B8273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40871a;
/* rgb */ color: rgb(64, 135, 26);
/* oklch */ color: oklch(55.6% 0.156 137.4);
Tailwind
colors: {
  custom: {
    50: '#7dab60',
    500: '#40871a',
    950: '#000000',
  },
}
SCSS
$custom: #40871a;
$custom-light: #7dab60;
$custom-dark: #000000;
JSON
{
  "hex": "#40871a",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 99.083,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55597,
    "c": 0.15628,
    "h": 137.4
  },
  "luminance": 0.18493
}

Semantic roles & 50–950 ramp

primary
#40871A
secondary
#9142BA
accent
#3DEBAE
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #40871A

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

Preview Lab → · Contrast checker → · Palette generator →

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