#408D16#408D16

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

Color values

HEX#408D16
RGBrgb(64, 141, 22)
HSLhsl(99, 73%, 32%)
HSVhsv(99, 84%, 55%)
CMYKcmyk(54.6%, 0%, 84.4%, 44.7%)
CIE-LABlab(52.06, -44.04, 50.66)
CIE-LCHlch(52.06, 67.12, 131.00°)
OKLaboklab(57.22% -0.1222 0.1116)
OKLCHoklch(57.22% 0.165 137.6)
XYZxyz(11.7836, 20.1967, 4.0363)
Luminance0.2020 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D16 #63168D
analogous
#7B8D16 #408D16 #168D28
triadic
#408D16 #16408D #8D1640
tetradic
#408D16 #167B8D #63168D #8D2816
square
#408D16 #167B8D #63168D #8D2816
split-complementary
#408D16 #28168D #8D167B
monochromatic
#102305 #28580E #408D16 #58C21E #77E13D

Accessibility & contrast

On white

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

On black

5.04
#408D16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D16
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D16#FFFFFF#000000##000000
##408D161.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #408d16;
/* rgb */ color: rgb(64, 141, 22);
/* oklch */ color: oklch(57.2% 0.165 137.6);
Tailwind
colors: {
  custom: {
    50: '#7eaf60',
    500: '#408d16',
    950: '#000000',
  },
}
SCSS
$custom: #408d16;
$custom-light: #7eaf60;
$custom-dark: #000000;
JSON
{
  "hex": "#408d16",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 98.824,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57216,
    "c": 0.16543,
    "h": 137.6
  },
  "luminance": 0.20198
}

Semantic roles & 50–950 ramp

primary
#408D16
secondary
#933EC1
accent
#38F0AF
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408D16

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

Preview Lab → · Contrast checker → · Palette generator →

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