#407F18#407F18

#407F18 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.4% C 0.147 H 136.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#407F18
RGBrgb(64, 127, 24)
HSLhsl(97, 68%, 30%)
HSVhsv(97, 81%, 50%)
CMYKcmyk(49.6%, 0%, 81.1%, 50.2%)
CIE-LABlab(47.41, -38.32, 45.75)
CIE-LCHlch(47.41, 59.68, 129.94°)
OKLaboklab(53.39% -0.1067 0.1016)
OKLCHoklch(53.39% 0.147 136.4)
XYZxyz(9.8683, 16.3340, 3.4968)
Luminance0.1633 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F18 #57187F
analogous
#747F18 #407F18 #187F24
triadic
#407F18 #18407F #7F1840
tetradic
#407F18 #18747F #57187F #7F2418
square
#407F18 #18747F #57187F #7F2418
split-complementary
#407F18 #24187F #7F1874
monochromatic
#0D1A05 #264C0E #407F18 #5AB222 #77D938

Accessibility & contrast

On white

4.92
#407F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#407F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F18
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F18#FFFFFF#000000##FFFFFF
##407F181.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7B6F24
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f18;
/* rgb */ color: rgb(64, 127, 24);
/* oklch */ color: oklch(53.4% 0.147 136.4);
Tailwind
colors: {
  custom: {
    50: '#7ca55e',
    500: '#407f18',
    950: '#000000',
  },
}
SCSS
$custom: #407f18;
$custom-light: #7ca55e;
$custom-dark: #000000;
JSON
{
  "hex": "#407f18",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 96.699,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5339,
    "c": 0.14731,
    "h": 136.4
  },
  "luminance": 0.16335
}

Semantic roles & 50–950 ramp

primary
#407F18
secondary
#863FB3
accent
#3DEBA7
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F18

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

Preview Lab → · Contrast checker → · Palette generator →

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