#40791F#40791F

#40791F is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.8% C 0.135 H 136.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#40791F
RGBrgb(64, 121, 31)
HSLhsl(98, 59%, 30%)
HSVhsv(98, 74%, 47%)
CMYKcmyk(47.1%, 0%, 74.4%, 52.5%)
CIE-LABlab(45.45, -35.29, 41.28)
CIE-LCHlch(45.45, 54.31, 130.53°)
OKLaboklab(51.79% -0.098 0.0933)
OKLCHoklch(51.79% 0.135 136.4)
XYZxyz(9.1988, 14.8631, 3.6802)
Luminance0.1486 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40791F #581F79
analogous
#6D791F #40791F #1F792B
triadic
#40791F #1F4079 #791F40
tetradic
#40791F #1F6D79 #581F79 #792B1F
square
#40791F #1F6D79 #581F79 #792B1F
split-complementary
#40791F #2B1F79 #791F6D
monochromatic
#0D1806 #264813 #40791F #5AAA2B #77CF43

Accessibility & contrast

On white

5.29
#40791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#40791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40791F
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40791F#FFFFFF#000000##FFFFFF
##40791F1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F10
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#3D7467
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40791f;
/* rgb */ color: rgb(64, 121, 31);
/* oklch */ color: oklch(51.8% 0.135 136.4);
Tailwind
colors: {
  custom: {
    50: '#7aa061',
    500: '#40791f',
    950: '#000000',
  },
}
SCSS
$custom: #40791f;
$custom-light: #7aa061;
$custom-dark: #000000;
JSON
{
  "hex": "#40791f",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 98,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51791,
    "c": 0.13534,
    "h": 136.4
  },
  "luminance": 0.14864
}

Semantic roles & 50–950 ramp

primary
#40791F
secondary
#8747AC
accent
#45E2A9
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #40791F

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

Preview Lab → · Contrast checker → · Palette generator →

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