#408B17#408B17

#408B17 is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 56.7% C 0.163 H 137.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#408B17
RGBrgb(64, 139, 23)
HSLhsl(99, 72%, 32%)
HSVhsv(99, 83%, 55%)
CMYKcmyk(54%, 0%, 83.5%, 45.5%)
CIE-LABlab(51.40, -43.21, 49.77)
CIE-LCHlch(51.40, 65.91, 130.96°)
OKLaboklab(56.68% -0.1199 0.1098)
OKLCHoklch(56.68% 0.163 137.5)
XYZxyz(11.5012, 19.6162, 3.9907)
Luminance0.1962 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408B17 #62178B
analogous
#7A8B17 #408B17 #178B28
triadic
#408B17 #17408B #8B1740
tetradic
#408B17 #177A8B #62178B #8B2817
square
#408B17 #177A8B #62178B #8B2817
split-complementary
#408B17 #28178B #8B177A
monochromatic
#102206 #28560E #408B17 #58C020 #77DF3D

Accessibility & contrast

On white

4.27
#408B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#408B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408B17
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408B17#FFFFFF#000000##000000
##408B171.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#3B8676
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408b17;
/* rgb */ color: rgb(64, 139, 23);
/* oklch */ color: oklch(56.7% 0.163 137.5);
Tailwind
colors: {
  custom: {
    50: '#7dad60',
    500: '#408b17',
    950: '#000000',
  },
}
SCSS
$custom: #408b17;
$custom-light: #7dad60;
$custom-dark: #000000;
JSON
{
  "hex": "#408b17",
  "rgb": {
    "r": 64,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 98.793,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56675,
    "c": 0.16259,
    "h": 137.5
  },
  "luminance": 0.19617
}

Semantic roles & 50–950 ramp

primary
#408B17
secondary
#923FBF
accent
#39EEAE
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408B17

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

Preview Lab → · Contrast checker → · Palette generator →

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