#408E0F#408E0F

#408E0F is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.5% C 0.169 H 137.3°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#408E0F
RGBrgb(64, 142, 15)
HSLhsl(97, 81%, 31%)
HSVhsv(97, 89%, 56%)
CMYKcmyk(54.9%, 0%, 89.4%, 44.3%)
CIE-LABlab(52.36, -44.73, 52.64)
CIE-LCHlch(52.36, 69.08, 130.35°)
OKLaboklab(57.46% -0.1243 0.1148)
OKLCHoklch(57.46% 0.169 137.3)
XYZxyz(11.8732, 20.4695, 3.7772)
Luminance0.2047 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E0F #5D0F8E
analogous
#7F8E0F #408E0F #0F8E1D
triadic
#408E0F #0F408E #8E0F40
tetradic
#408E0F #0F7F8E #5D0F8E #8E1D0F
square
#408E0F #0F7F8E #5D0F8E #8E1D0F
split-complementary
#408E0F #1D0F8E #8E0F7F
monochromatic
#0E1F03 #275709 #408E0F #59C515 #76E92E

Accessibility & contrast

On white

4.12
#408E0F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#408E0F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408E0F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408E0F#FFFFFF#000000##000000
##408E0F1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#897B22
Tritanopia (blue-blind)
#3A8978
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e0f;
/* rgb */ color: rgb(64, 142, 15);
/* oklch */ color: oklch(57.5% 0.169 137.3);
Tailwind
colors: {
  custom: {
    50: '#7eb05d',
    500: '#408e0f',
    950: '#000000',
  },
}
SCSS
$custom: #408e0f;
$custom-light: #7eb05d;
$custom-dark: #000000;
JSON
{
  "hex": "#408e0f",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 15
  },
  "hsl": {
    "h": 96.85,
    "s": 80.892,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57459,
    "c": 0.1692,
    "h": 137.3
  },
  "luminance": 0.2047
}

Semantic roles & 50–950 ramp

primary
#408E0F
secondary
#8C36C3
accent
#31F7AB
background
#F8FAF5
surface
#EFF5EA
border
#CACFC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408E0F

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

Preview Lab → · Contrast checker → · Palette generator →

#408E0F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva