#40971B#40971B

#40971B is a mid, vivid green. Relative luminance 0.233; OKLCH L 60.0% C 0.175 H 138.6°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#40971B
RGBrgb(64, 151, 27)
HSLhsl(102, 70%, 35%)
HSVhsv(102, 82%, 59%)
CMYKcmyk(57.6%, 0%, 82.1%, 40.8%)
CIE-LABlab(55.38, -47.59, 52.28)
CIE-LCHlch(55.38, 70.69, 132.31°)
OKLaboklab(59.97% -0.1314 0.1157)
OKLCHoklch(59.97% 0.175 138.6)
XYZxyz(13.3783, 23.3012, 4.8293)
Luminance0.2330 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40971B #721B97
analogous
#7E971B #40971B #1B9734
triadic
#40971B #1B4097 #971B40
tetradic
#40971B #1B7E97 #721B97 #97341B
square
#40971B #1B7E97 #721B97 #97341B
split-complementary
#40971B #341B97 #971B7E
monochromatic
#142F08 #2A6312 #40971B #56CB24 #79DF4D

Accessibility & contrast

On white

3.71
#40971B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#40971B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40971B
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40971B#FFFFFF#000000##000000
##40971B1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#379280
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #40971b;
/* rgb */ color: rgb(64, 151, 27);
/* oklch */ color: oklch(60.0% 0.175 138.6);
Tailwind
colors: {
  custom: {
    50: '#7fb663',
    500: '#40971b',
    950: '#000000',
  },
}
SCSS
$custom: #40971b;
$custom-light: #7fb663;
$custom-dark: #000000;
JSON
{
  "hex": "#40971b",
  "rgb": {
    "r": 64,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 102.097,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59965,
    "c": 0.17508,
    "h": 138.6
  },
  "luminance": 0.23302
}

Semantic roles & 50–950 ramp

primary
#40971B
secondary
#9F4CC1
accent
#3BECB8
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #40971B

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

Preview Lab → · Contrast checker → · Palette generator →

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