#40831B#40831B

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

Color values

HEX#40831B
RGBrgb(64, 131, 27)
HSLhsl(99, 66%, 31%)
HSVhsv(99, 79%, 51%)
CMYKcmyk(51.1%, 0%, 79.4%, 48.6%)
CIE-LABlab(48.76, -39.78, 46.04)
CIE-LCHlch(48.76, 60.84, 130.83°)
OKLaboklab(54.51% -0.1104 0.1026)
OKLCHoklch(54.51% 0.151 137.1)
XYZxyz(10.4282, 17.4010, 3.8459)
Luminance0.1740 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40831B #5E1B83
analogous
#74831B #40831B #1B832A
triadic
#40831B #1B4083 #831B40
tetradic
#40831B #1B7483 #5E1B83 #832A1B
square
#40831B #1B7483 #5E1B83 #832A1B
split-complementary
#40831B #2A1B83 #831B74
monochromatic
#0E1E06 #275011 #40831B #59B625 #76D841

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40831B#FFFFFF#000000##FFFFFF
##40831B1.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)
#887701
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#3C7E6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #40831b;
/* rgb */ color: rgb(64, 131, 27);
/* oklch */ color: oklch(54.5% 0.151 137.1);
Tailwind
colors: {
  custom: {
    50: '#7ca860',
    500: '#40831b',
    950: '#000000',
  },
}
SCSS
$custom: #40831b;
$custom-light: #7ca860;
$custom-dark: #000000;
JSON
{
  "hex": "#40831b",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 98.654,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54507,
    "c": 0.15076,
    "h": 137.1
  },
  "luminance": 0.17402
}

Semantic roles & 50–950 ramp

primary
#40831B
secondary
#8D43B6
accent
#3FE9AC
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40831B

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

Preview Lab → · Contrast checker → · Palette generator →

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