#40941B#40941B

#40941B is a mid, vivid green. Relative luminance 0.223; OKLCH L 59.2% C 0.172 H 138.5°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#40941B
RGBrgb(64, 148, 27)
HSLhsl(102, 69%, 34%)
HSVhsv(102, 82%, 58%)
CMYKcmyk(56.8%, 0%, 81.8%, 42%)
CIE-LABlab(54.39, -46.46, 51.36)
CIE-LCHlch(54.39, 69.25, 132.13°)
OKLaboklab(59.15% -0.1284 0.1138)
OKLCHoklch(59.15% 0.172 138.5)
XYZxyz(12.9016, 22.3479, 4.6704)
Luminance0.2235 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40941B #6F1B94
analogous
#7D941B #40941B #1B9433
triadic
#40941B #1B4094 #941B40
tetradic
#40941B #1B7D94 #6F1B94 #94331B
square
#40941B #1B7D94 #6F1B94 #94331B
split-complementary
#40941B #331B94 #941B7D
monochromatic
#132C08 #2A6012 #40941B #56C824 #78DE4B

Accessibility & contrast

On white

3.84
#40941B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#40941B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40941B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40941B#FFFFFF#000000##000000
##40941B1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#8E7F2A
Tritanopia (blue-blind)
#388F7E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #40941b;
/* rgb */ color: rgb(64, 148, 27);
/* oklch */ color: oklch(59.2% 0.172 138.5);
Tailwind
colors: {
  custom: {
    50: '#7fb463',
    500: '#40941b',
    950: '#000000',
  },
}
SCSS
$custom: #40941b;
$custom-light: #7fb463;
$custom-dark: #000000;
JSON
{
  "hex": "#40941b",
  "rgb": {
    "r": 64,
    "g": 148,
    "b": 27
  },
  "hsl": {
    "h": 101.653,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.5915,
    "c": 0.17153,
    "h": 138.5
  },
  "luminance": 0.22349
}

Semantic roles & 50–950 ramp

primary
#40941B
secondary
#9C4BC0
accent
#3CECB6
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #40941B

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

Preview Lab → · Contrast checker → · Palette generator →

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