#40831D#40831D

#40831D is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.5% C 0.150 H 137.3°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#40831D
RGBrgb(64, 131, 29)
HSLhsl(99, 64%, 31%)
HSVhsv(99, 78%, 51%)
CMYKcmyk(51.1%, 0%, 77.9%, 48.6%)
CIE-LABlab(48.77, -39.65, 45.35)
CIE-LCHlch(48.77, 60.24, 131.16°)
OKLaboklab(54.52% -0.1099 0.1015)
OKLCHoklch(54.52% 0.15 137.3)
XYZxyz(10.4521, 17.4106, 3.9720)
Luminance0.1741 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40831D #601D83
analogous
#73831D #40831D #1D832D
triadic
#40831D #1D4083 #831D40
tetradic
#40831D #1D7383 #601D83 #832D1D
square
#40831D #1D7383 #601D83 #832D1D
split-complementary
#40831D #2D1D83 #831D73
monochromatic
#0F1F07 #285112 #40831D #58B528 #76D645

Accessibility & contrast

On white

4.69
#40831D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#40831D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40831D
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40831D#FFFFFF#000000##FFFFFF
##40831D1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877706
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#3C7E70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #40831d;
/* rgb */ color: rgb(64, 131, 29);
/* oklch */ color: oklch(54.5% 0.150 137.3);
Tailwind
colors: {
  custom: {
    50: '#7ca861',
    500: '#40831d',
    950: '#000000',
  },
}
SCSS
$custom: #40831d;
$custom-light: #7ca861;
$custom-dark: #000000;
JSON
{
  "hex": "#40831d",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 29
  },
  "hsl": {
    "h": 99.412,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54521,
    "c": 0.14964,
    "h": 137.3
  },
  "luminance": 0.17411
}

Semantic roles & 50–950 ramp

primary
#40831D
secondary
#9046B6
accent
#41E7AE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #40831D

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

Preview Lab → · Contrast checker → · Palette generator →

#40831D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva