#408C17#408C17

#408C17 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 56.9% C 0.164 H 137.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#408C17
RGBrgb(64, 140, 23)
HSLhsl(99, 72%, 32%)
HSVhsv(99, 84%, 55%)
CMYKcmyk(54.3%, 0%, 83.6%, 45.1%)
CIE-LABlab(51.73, -43.60, 50.08)
CIE-LCHlch(51.73, 66.40, 131.05°)
OKLaboklab(56.95% -0.1209 0.1105)
OKLCHoklch(56.95% 0.164 137.6)
XYZxyz(11.6467, 19.9071, 4.0392)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C17 #63178C
analogous
#7B8C17 #408C17 #178C28
triadic
#408C17 #17408C #8C1740
tetradic
#408C17 #177B8C #63178C #8C2817
square
#408C17 #177B8C #63178C #8C2817
split-complementary
#408C17 #28178C #8C177B
monochromatic
#102306 #28570E #408C17 #58C120 #77DF3E

Accessibility & contrast

On white

4.22
#408C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#408C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C17
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C17#FFFFFF#000000##000000
##408C171.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#3A8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c17;
/* rgb */ color: rgb(64, 140, 23);
/* oklch */ color: oklch(56.9% 0.164 137.6);
Tailwind
colors: {
  custom: {
    50: '#7eae60',
    500: '#408c17',
    950: '#000000',
  },
}
SCSS
$custom: #408c17;
$custom-light: #7eae60;
$custom-dark: #000000;
JSON
{
  "hex": "#408c17",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 23
  },
  "hsl": {
    "h": 98.974,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56948,
    "c": 0.1638,
    "h": 137.6
  },
  "luminance": 0.19908
}

Semantic roles & 50–950 ramp

primary
#408C17
secondary
#933FBF
accent
#39EFAF
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408C17

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

Preview Lab → · Contrast checker → · Palette generator →

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