#407B18#407B18

#407B18 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.3% C 0.142 H 135.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#407B18
RGBrgb(64, 123, 24)
HSLhsl(96, 67%, 29%)
HSVhsv(96, 80%, 48%)
CMYKcmyk(48%, 0%, 80.5%, 51.8%)
CIE-LABlab(46.07, -36.64, 44.49)
CIE-LCHlch(46.07, 57.63, 129.47°)
OKLaboklab(52.29% -0.1022 0.0989)
OKLCHoklch(52.29% 0.142 135.9)
XYZxyz(9.3619, 15.3213, 3.3280)
Luminance0.1532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B18 #53187B
analogous
#727B18 #407B18 #187B22
triadic
#407B18 #18407B #7B1840
tetradic
#407B18 #18727B #53187B #7B2218
square
#407B18 #18727B #53187B #7B2218
split-complementary
#407B18 #22187B #7B1872
monochromatic
#0D1A05 #25480E #407B18 #5BAE22 #77D836

Accessibility & contrast

On white

5.17
#407B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#407B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B18
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B18#FFFFFF#000000##FFFFFF
##407B181.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#786B23
Tritanopia (blue-blind)
#3E7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b18;
/* rgb */ color: rgb(64, 123, 24);
/* oklch */ color: oklch(52.3% 0.142 135.9);
Tailwind
colors: {
  custom: {
    50: '#7ba25e',
    500: '#407b18',
    950: '#000000',
  },
}
SCSS
$custom: #407b18;
$custom-light: #7ba25e;
$custom-dark: #000000;
JSON
{
  "hex": "#407b18",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 95.758,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5229,
    "c": 0.14221,
    "h": 135.9
  },
  "luminance": 0.15322
}

Semantic roles & 50–950 ramp

primary
#407B18
secondary
#823FB0
accent
#3EEAA4
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407B18

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

Preview Lab → · Contrast checker → · Palette generator →

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