#408F18#408F18

#408F18 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 57.8% C 0.167 H 137.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#408F18
RGBrgb(64, 143, 24)
HSLhsl(100, 71%, 33%)
HSVhsv(100, 83%, 56%)
CMYKcmyk(55.2%, 0%, 83.2%, 43.9%)
CIE-LABlab(52.73, -44.71, 50.70)
CIE-LCHlch(52.73, 67.60, 131.41°)
OKLaboklab(57.77% -0.1239 0.112)
OKLCHoklch(57.77% 0.167 137.9)
XYZxyz(12.1013, 20.7999, 4.2411)
Luminance0.2080 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F18 #67188F
analogous
#7B8F18 #408F18 #188F2C
triadic
#408F18 #18408F #8F1840
tetradic
#408F18 #187B8F #67188F #8F2C18
square
#408F18 #187B8F #67188F #8F2C18
split-complementary
#408F18 #2C188F #8F187B
monochromatic
#112606 #295B0F #408F18 #57C321 #77DF42

Accessibility & contrast

On white

4.07
#408F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#408F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408F18
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408F18#FFFFFF#000000##000000
##408F181.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8A7B27
Tritanopia (blue-blind)
#3A8A7A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #408f18;
/* rgb */ color: rgb(64, 143, 24);
/* oklch */ color: oklch(57.8% 0.167 137.9);
Tailwind
colors: {
  custom: {
    50: '#7eb061',
    500: '#408f18',
    950: '#000000',
  },
}
SCSS
$custom: #408f18;
$custom-light: #7eb061;
$custom-dark: #000000;
JSON
{
  "hex": "#408f18",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 99.832,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57772,
    "c": 0.16696,
    "h": 137.9
  },
  "luminance": 0.20801
}

Semantic roles & 50–950 ramp

primary
#408F18
secondary
#9643C0
accent
#3AEEB1
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1105
muted
#7C807A

Preview Lab

Preview with #408F18

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

Preview Lab → · Contrast checker → · Palette generator →

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