#40801C#40801C

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

Color values

HEX#40801C
RGBrgb(64, 128, 28)
HSLhsl(98, 64%, 31%)
HSVhsv(98, 78%, 50%)
CMYKcmyk(50%, 0%, 78.1%, 49.8%)
CIE-LABlab(47.77, -38.48, 44.72)
CIE-LCHlch(47.77, 59.00, 130.71°)
OKLaboklab(53.69% -0.1069 0.1)
OKLCHoklch(53.69% 0.146 136.9)
XYZxyz(10.0428, 16.6115, 3.7755)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40801C #5C1C80
analogous
#72801C #40801C #1C802A
triadic
#40801C #1C4080 #801C40
tetradic
#40801C #1C7280 #5C1C80 #802A1C
square
#40801C #1C7280 #5C1C80 #802A1C
split-complementary
#40801C #2A1C80 #801C72
monochromatic
#0E1C06 #274E11 #40801C #59B227 #76D541

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40801C#FFFFFF#000000##FFFFFF
##40801C1.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)
#847505
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#3C7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #40801c;
/* rgb */ color: rgb(64, 128, 28);
/* oklch */ color: oklch(53.7% 0.146 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ca560',
    500: '#40801c',
    950: '#000000',
  },
}
SCSS
$custom: #40801c;
$custom-light: #7ca560;
$custom-dark: #000000;
JSON
{
  "hex": "#40801c",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 28
  },
  "hsl": {
    "h": 98.4,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53691,
    "c": 0.14638,
    "h": 136.9
  },
  "luminance": 0.16612
}

Semantic roles & 50–950 ramp

primary
#40801C
secondary
#8B44B3
accent
#41E7AB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40801C

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

Preview Lab → · Contrast checker → · Palette generator →

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