#407C1B#407C1B

#407C1B is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.6% C 0.142 H 136.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#407C1B
RGBrgb(64, 124, 27)
HSLhsl(97, 64%, 30%)
HSVhsv(97, 78%, 49%)
CMYKcmyk(48.4%, 0%, 78.2%, 51.4%)
CIE-LABlab(46.42, -36.87, 43.78)
CIE-LCHlch(46.42, 57.23, 130.10°)
OKLaboklab(52.59% -0.1026 0.0979)
OKLCHoklch(52.59% 0.142 136.3)
XYZxyz(9.5196, 15.5838, 3.5431)
Luminance0.1558 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C1B #571B7C
analogous
#717C1B #407C1B #1B7C26
triadic
#407C1B #1B407C #7C1B40
tetradic
#407C1B #1B717C #571B7C #7C261B
square
#407C1B #1B717C #571B7C #7C261B
split-complementary
#407C1B #261B7C #7C1B71
monochromatic
#0D1905 #264A10 #407C1B #5AAE26 #77D53D

Accessibility & contrast

On white

5.10
#407C1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#407C1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C1B
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C1B#FFFFFF#000000##FFFFFF
##407C1B1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817105
Deuteranopia (green-blind)
#796C25
Tritanopia (blue-blind)
#3D776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c1b;
/* rgb */ color: rgb(64, 124, 27);
/* oklch */ color: oklch(52.6% 0.142 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ba25f',
    500: '#407c1b',
    950: '#000000',
  },
}
SCSS
$custom: #407c1b;
$custom-light: #7ba25f;
$custom-dark: #000000;
JSON
{
  "hex": "#407c1b",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 97.113,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52585,
    "c": 0.14181,
    "h": 136.3
  },
  "luminance": 0.15584
}

Semantic roles & 50–950 ramp

primary
#407C1B
secondary
#8643B0
accent
#41E7A8
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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