#408118#408118

#408118 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 53.9% C 0.150 H 136.6°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#408118
RGBrgb(64, 129, 24)
HSLhsl(97, 69%, 30%)
HSVhsv(97, 81%, 51%)
CMYKcmyk(50.4%, 0%, 81.4%, 49.4%)
CIE-LABlab(48.08, -39.14, 46.38)
CIE-LCHlch(48.08, 60.69, 130.16°)
OKLaboklab(53.94% -0.1089 0.1029)
OKLCHoklch(53.94% 0.15 136.6)
XYZxyz(10.1292, 16.8558, 3.5837)
Luminance0.1686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408118 #591881
analogous
#748118 #408118 #188125
triadic
#408118 #184081 #811840
tetradic
#408118 #187481 #591881 #812518
square
#408118 #187481 #591881 #812518
split-complementary
#408118 #251881 #811874
monochromatic
#0D1A05 #264D0E #408118 #5AB522 #77DA39

Accessibility & contrast

On white

4.80
#408118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#408118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408118
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408118#FFFFFF#000000##FFFFFF
##4081181.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#7D7024
Tritanopia (blue-blind)
#3C7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #408118;
/* rgb */ color: rgb(64, 129, 24);
/* oklch */ color: oklch(53.9% 0.150 136.6);
Tailwind
colors: {
  custom: {
    50: '#7ca65f',
    500: '#408118',
    950: '#000000',
  },
}
SCSS
$custom: #408118;
$custom-light: #7ca65f;
$custom-dark: #000000;
JSON
{
  "hex": "#408118",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 97.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.5394,
    "c": 0.14983,
    "h": 136.6
  },
  "luminance": 0.16856
}

Semantic roles & 50–950 ramp

primary
#408118
secondary
#8840B5
accent
#3CEBA9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408118

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

Preview Lab → · Contrast checker → · Palette generator →

#408118 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva