#40801B#40801B

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

Color values

HEX#40801B
RGBrgb(64, 128, 27)
HSLhsl(98, 65%, 30%)
HSVhsv(98, 79%, 50%)
CMYKcmyk(50%, 0%, 78.9%, 49.8%)
CIE-LABlab(47.76, -38.54, 45.07)
CIE-LCHlch(47.76, 59.31, 130.54°)
OKLaboklab(53.68% -0.1071 0.1006)
OKLCHoklch(53.68% 0.147 136.8)
XYZxyz(10.0311, 16.6068, 3.7136)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40801B #5B1B80
analogous
#72801B #40801B #1B8029
triadic
#40801B #1B4080 #801B40
tetradic
#40801B #1B7280 #5B1B80 #80291B
square
#40801B #1B7280 #5B1B80 #80291B
split-complementary
#40801B #291B80 #801B72
monochromatic
#0D1B06 #274D10 #40801B #59B326 #76D63F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40801B#FFFFFF#000000##FFFFFF
##40801B1.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)
#857503
Deuteranopia (green-blind)
#7C6F26
Tritanopia (blue-blind)
#3C7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #40801b;
/* rgb */ color: rgb(64, 128, 27);
/* oklch */ color: oklch(53.7% 0.147 136.8);
Tailwind
colors: {
  custom: {
    50: '#7ca560',
    500: '#40801b',
    950: '#000000',
  },
}
SCSS
$custom: #40801b;
$custom-light: #7ca560;
$custom-dark: #000000;
JSON
{
  "hex": "#40801b",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 27
  },
  "hsl": {
    "h": 98.02,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53684,
    "c": 0.14695,
    "h": 136.8
  },
  "luminance": 0.16607
}

Semantic roles & 50–950 ramp

primary
#40801B
secondary
#8A43B4
accent
#40E8AA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40801B

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

Preview Lab → · Contrast checker → · Palette generator →

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