#40871B#40871B

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

Color values

HEX#40871B
RGBrgb(64, 135, 27)
HSLhsl(99, 67%, 32%)
HSVhsv(99, 80%, 53%)
CMYKcmyk(52.6%, 0%, 80%, 47.1%)
CIE-LABlab(50.09, -41.40, 47.31)
CIE-LCHlch(50.09, 62.87, 131.19°)
OKLaboklab(55.6% -0.1148 0.1053)
OKLCHoklch(55.6% 0.156 137.5)
XYZxyz(10.9758, 18.4963, 4.0285)
Luminance0.1850 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40871B #621B87
analogous
#76871B #40871B #1B872C
triadic
#40871B #1B4087 #871B40
tetradic
#40871B #1B7687 #621B87 #872C1B
square
#40871B #1B7687 #621B87 #872C1B
split-complementary
#40871B #2C1B87 #871B76
monochromatic
#102107 #285411 #40871B #58BA25 #77D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40871B#FFFFFF#000000##000000
##40871B1.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)
#827527
Tritanopia (blue-blind)
#3B8273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40871b;
/* rgb */ color: rgb(64, 135, 27);
/* oklch */ color: oklch(55.6% 0.156 137.5);
Tailwind
colors: {
  custom: {
    50: '#7dab61',
    500: '#40871b',
    950: '#000000',
  },
}
SCSS
$custom: #40871b;
$custom-light: #7dab61;
$custom-dark: #000000;
JSON
{
  "hex": "#40871b",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 99.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55603,
    "c": 0.15576,
    "h": 137.5
  },
  "luminance": 0.18497
}

Semantic roles & 50–950 ramp

primary
#40871B
secondary
#9244BA
accent
#3EEAAF
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40871B

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

Preview Lab → · Contrast checker → · Palette generator →

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