#40981F#40981F

#40981F is a mid, vivid green. Relative luminance 0.236; OKLCH L 60.3% C 0.174 H 139.0°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#40981F
RGBrgb(64, 152, 31)
HSLhsl(104, 66%, 36%)
HSVhsv(104, 80%, 60%)
CMYKcmyk(57.9%, 0%, 79.6%, 40.4%)
CIE-LABlab(55.73, -47.73, 51.37)
CIE-LCHlch(55.73, 70.12, 132.89°)
OKLaboklab(60.26% -0.1316 0.1144)
OKLCHoklch(60.26% 0.174 139)
XYZxyz(13.5894, 23.6442, 5.1437)
Luminance0.2364 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40981F #771F98
analogous
#7C981F #40981F #1F983A
triadic
#40981F #1F4098 #981F40
tetradic
#40981F #1F7C98 #771F98 #983A1F
square
#40981F #1F7C98 #771F98 #983A1F
split-complementary
#40981F #3A1F98 #981F7C
monochromatic
#15320A #2B6515 #40981F #55CB29 #7ADC55

Accessibility & contrast

On white

3.67
#40981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#40981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40981F
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40981F#FFFFFF#000000##000000
##40981F1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#379382
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #40981f;
/* rgb */ color: rgb(64, 152, 31);
/* oklch */ color: oklch(60.3% 0.174 139.0);
Tailwind
colors: {
  custom: {
    50: '#7fb765',
    500: '#40981f',
    950: '#000000',
  },
}
SCSS
$custom: #40981f;
$custom-light: #7fb765;
$custom-dark: #000000;
JSON
{
  "hex": "#40981f",
  "rgb": {
    "r": 64,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 103.636,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.6026,
    "c": 0.17434,
    "h": 139
  },
  "luminance": 0.23645
}

Semantic roles & 50–950 ramp

primary
#40981F
secondary
#A253C0
accent
#3FE9BB
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #40981F

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

Preview Lab → · Contrast checker → · Palette generator →

#40981F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva