#408D0E#408D0E

#408D0E is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.2% C 0.168 H 137.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#408D0E
RGBrgb(64, 141, 14)
HSLhsl(96, 82%, 30%)
HSVhsv(96, 90%, 55%)
CMYKcmyk(54.6%, 0%, 90.1%, 44.7%)
CIE-LABlab(52.03, -44.38, 52.56)
CIE-LCHlch(52.03, 68.79, 130.17°)
OKLaboklab(57.18% -0.1234 0.1145)
OKLCHoklch(57.18% 0.168 137.2)
XYZxyz(11.7181, 20.1705, 3.6912)
Luminance0.2017 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D0E #5B0E8D
analogous
#7F8D0E #408D0E #0E8D1C
triadic
#408D0E #0E408D #8D0E40
tetradic
#408D0E #0E7F8D #5B0E8D #8D1C0E
square
#408D0E #0E7F8D #5B0E8D #8D1C0E
split-complementary
#408D0E #1C0E8D #8D0E7F
monochromatic
#0D1E03 #275508 #408D0E #59C514 #76EA2B

Accessibility & contrast

On white

4.17
#408D0E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#408D0E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D0E
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D0E#FFFFFF#000000##000000
##408D0E1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#887A21
Tritanopia (blue-blind)
#3B8877
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d0e;
/* rgb */ color: rgb(64, 141, 14);
/* oklch */ color: oklch(57.2% 0.168 137.2);
Tailwind
colors: {
  custom: {
    50: '#7eaf5d',
    500: '#408d0e',
    950: '#000000',
  },
}
SCSS
$custom: #408d0e;
$custom-light: #7eaf5d;
$custom-dark: #000000;
JSON
{
  "hex": "#408d0e",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 14
  },
  "hsl": {
    "h": 96.378,
    "s": 81.935,
    "l": 30.392
  },
  "oklch": {
    "l": 0.57182,
    "c": 0.16833,
    "h": 137.2
  },
  "luminance": 0.20171
}

Semantic roles & 50–950 ramp

primary
#408D0E
secondary
#8A35C2
accent
#30F8A9
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408D0E

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

Preview Lab → · Contrast checker → · Palette generator →

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