#408418#408418

#408418 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 54.8% C 0.154 H 136.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#408418
RGBrgb(64, 132, 24)
HSLhsl(98, 69%, 31%)
HSVhsv(98, 82%, 52%)
CMYKcmyk(51.5%, 0%, 81.8%, 48.2%)
CIE-LABlab(49.08, -40.37, 47.32)
CIE-LCHlch(49.08, 62.20, 130.47°)
OKLaboklab(54.76% -0.1122 0.1049)
OKLCHoklch(54.76% 0.154 136.9)
XYZxyz(10.5302, 17.6577, 3.7174)
Luminance0.1766 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408418 #5C1884
analogous
#768418 #408418 #188426
triadic
#408418 #184084 #841840
tetradic
#408418 #187684 #5C1884 #842618
square
#408418 #187684 #5C1884 #842618
split-complementary
#408418 #261884 #841876
monochromatic
#0E1C05 #27500F #408418 #59B821 #76DB3B

Accessibility & contrast

On white

4.63
#408418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#408418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #408418
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408418#FFFFFF#000000##FFFFFF
##4084181.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#3C7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #408418;
/* rgb */ color: rgb(64, 132, 24);
/* oklch */ color: oklch(54.8% 0.154 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ca85f',
    500: '#408418',
    950: '#000000',
  },
}
SCSS
$custom: #408418;
$custom-light: #7ca85f;
$custom-dark: #000000;
JSON
{
  "hex": "#408418",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 97.778,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54763,
    "c": 0.15357,
    "h": 136.9
  },
  "luminance": 0.17658
}

Semantic roles & 50–950 ramp

primary
#408418
secondary
#8B40B8
accent
#3CECAB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408418

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

Preview Lab → · Contrast checker → · Palette generator →

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