#40801D#40801D

#40801D is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.7% C 0.146 H 137.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#40801D
RGBrgb(64, 128, 29)
HSLhsl(99, 63%, 31%)
HSVhsv(99, 77%, 50%)
CMYKcmyk(50%, 0%, 77.3%, 49.8%)
CIE-LABlab(47.77, -38.41, 44.37)
CIE-LCHlch(47.77, 58.68, 130.88°)
OKLaboklab(53.7% -0.1066 0.0995)
OKLCHoklch(53.7% 0.146 137)
XYZxyz(10.0550, 16.6164, 3.8396)
Luminance0.1662 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40801D #5D1D80
analogous
#71801D #40801D #1D802B
triadic
#40801D #1D4080 #801D40
tetradic
#40801D #1D7180 #5D1D80 #802B1D
square
#40801D #1D7180 #5D1D80 #802B1D
split-complementary
#40801D #2B1D80 #801D71
monochromatic
#0E1C06 #274E12 #40801D #59B228 #76D443

Accessibility & contrast

On white

4.86
#40801D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#40801D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40801D
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40801D#FFFFFF#000000##FFFFFF
##40801D1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847508
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#3C7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #40801d;
/* rgb */ color: rgb(64, 128, 29);
/* oklch */ color: oklch(53.7% 0.146 137.0);
Tailwind
colors: {
  custom: {
    50: '#7ba561',
    500: '#40801d',
    950: '#000000',
  },
}
SCSS
$custom: #40801d;
$custom-light: #7ba561;
$custom-dark: #000000;
JSON
{
  "hex": "#40801d",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 29
  },
  "hsl": {
    "h": 98.788,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53698,
    "c": 0.14579,
    "h": 137
  },
  "luminance": 0.16617
}

Semantic roles & 50–950 ramp

primary
#40801D
secondary
#8C45B3
accent
#42E6AC
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40801D

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

Preview Lab → · Contrast checker → · Palette generator →

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