#40871C#40871C

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

Color values

HEX#40871C
RGBrgb(64, 135, 28)
HSLhsl(100, 66%, 32%)
HSVhsv(100, 79%, 53%)
CMYKcmyk(52.6%, 0%, 79.3%, 47.1%)
CIE-LABlab(50.10, -41.34, 46.98)
CIE-LCHlch(50.10, 62.58, 131.34°)
OKLaboklab(55.61% -0.1146 0.1048)
OKLCHoklch(55.61% 0.155 137.6)
XYZxyz(10.9876, 18.5010, 4.0904)
Luminance0.1850 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40871C #631C87
analogous
#76871C #40871C #1C872E
triadic
#40871C #1C4087 #871C40
tetradic
#40871C #1C7687 #631C87 #872E1C
square
#40871C #1C7687 #631C87 #872E1C
split-complementary
#40871C #2E1C87 #871C76
monochromatic
#102207 #285411 #40871C #58BA27 #77D845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40871C#FFFFFF#000000##000000
##40871C1.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)
#8C7B01
Deuteranopia (green-blind)
#827528
Tritanopia (blue-blind)
#3B8273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40871c;
/* rgb */ color: rgb(64, 135, 28);
/* oklch */ color: oklch(55.6% 0.155 137.6);
Tailwind
colors: {
  custom: {
    50: '#7dab61',
    500: '#40871c',
    950: '#000000',
  },
}
SCSS
$custom: #40871c;
$custom-light: #7dab61;
$custom-dark: #000000;
JSON
{
  "hex": "#40871c",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 99.813,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5561,
    "c": 0.15523,
    "h": 137.6
  },
  "luminance": 0.18502
}

Semantic roles & 50–950 ramp

primary
#40871C
secondary
#9345BA
accent
#3FE9B0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40871C

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

Preview Lab → · Contrast checker → · Palette generator →

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