#40801F#40801F

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

Color values

HEX#40801F
RGBrgb(64, 128, 31)
HSLhsl(100, 61%, 31%)
HSVhsv(100, 76%, 50%)
CMYKcmyk(50%, 0%, 75.8%, 49.8%)
CIE-LABlab(47.79, -38.27, 43.63)
CIE-LCHlch(47.79, 58.04, 131.25°)
OKLaboklab(53.71% -0.1061 0.0982)
OKLCHoklch(53.71% 0.145 137.2)
XYZxyz(10.0805, 16.6266, 3.9741)
Luminance0.1663 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40801F #5F1F80
analogous
#70801F #40801F #1F802F
triadic
#40801F #1F4080 #801F40
tetradic
#40801F #1F7080 #5F1F80 #802F1F
square
#40801F #1F7080 #5F1F80 #802F1F
split-complementary
#40801F #2F1F80 #801F70
monochromatic
#0F1D07 #274F13 #40801F #59B12B #76D247

Accessibility & contrast

On white

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

On black

4.33
#40801F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40801F#FFFFFF#000000##FFFFFF
##40801F1.004.864.334.86
#FFFFFF4.861.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84750C
Deuteranopia (green-blind)
#7C6F29
Tritanopia (blue-blind)
#3C7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #40801f;
/* rgb */ color: rgb(64, 128, 31);
/* oklch */ color: oklch(53.7% 0.145 137.2);
Tailwind
colors: {
  custom: {
    50: '#7ba562',
    500: '#40801f',
    950: '#000000',
  },
}
SCSS
$custom: #40801f;
$custom-light: #7ba562;
$custom-dark: #000000;
JSON
{
  "hex": "#40801f",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 99.588,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53713,
    "c": 0.14458,
    "h": 137.2
  },
  "luminance": 0.16627
}

Semantic roles & 50–950 ramp

primary
#40801F
secondary
#8F48B3
accent
#44E4AE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #40801F

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

Preview Lab → · Contrast checker → · Palette generator →

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