#40801A#40801A

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

Color values

HEX#40801A
RGBrgb(64, 128, 26)
HSLhsl(98, 66%, 30%)
HSVhsv(98, 80%, 50%)
CMYKcmyk(50%, 0%, 79.7%, 49.8%)
CIE-LABlab(47.75, -38.61, 45.41)
CIE-LCHlch(47.75, 59.61, 130.37°)
OKLaboklab(53.68% -0.1073 0.1012)
OKLCHoklch(53.68% 0.148 136.7)
XYZxyz(10.0197, 16.6022, 3.6537)
Luminance0.1660 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40801A #5A1A80
analogous
#73801A #40801A #1A8027
triadic
#40801A #1A4080 #801A40
tetradic
#40801A #1A7380 #5A1A80 #80271A
square
#40801A #1A7380 #5A1A80 #80271A
split-complementary
#40801A #271A80 #801A73
monochromatic
#0D1A05 #274D10 #40801A #59B324 #76D83D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40801A#FFFFFF#000000##FFFFFF
##40801A1.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)
#857501
Deuteranopia (green-blind)
#7C6F25
Tritanopia (blue-blind)
#3D7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #40801a;
/* rgb */ color: rgb(64, 128, 26);
/* oklch */ color: oklch(53.7% 0.148 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ca55f',
    500: '#40801a',
    950: '#000000',
  },
}
SCSS
$custom: #40801a;
$custom-light: #7ca55f;
$custom-dark: #000000;
JSON
{
  "hex": "#40801a",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 26
  },
  "hsl": {
    "h": 97.647,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53678,
    "c": 0.14751,
    "h": 136.7
  },
  "luminance": 0.16603
}

Semantic roles & 50–950 ramp

primary
#40801A
secondary
#8942B4
accent
#3FE9AA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40801A

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

Preview Lab → · Contrast checker → · Palette generator →

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