#407D1B#407D1B

#407D1B is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.9% C 0.143 H 136.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#407D1B
RGBrgb(64, 125, 27)
HSLhsl(97, 64%, 30%)
HSVhsv(97, 78%, 49%)
CMYKcmyk(48.8%, 0%, 78.4%, 51%)
CIE-LABlab(46.76, -37.29, 44.10)
CIE-LCHlch(46.76, 57.75, 130.22°)
OKLaboklab(52.86% -0.1037 0.0986)
OKLCHoklch(52.86% 0.143 136.5)
XYZxyz(9.6455, 15.8357, 3.5850)
Luminance0.1584 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D1B #581B7D
analogous
#717D1B #407D1B #1B7D27
triadic
#407D1B #1B407D #7D1B40
tetradic
#407D1B #1B717D #581B7D #7D271B
square
#407D1B #1B717D #581B7D #7D271B
split-complementary
#407D1B #271B7D #7D1B71
monochromatic
#0D1905 #264B10 #407D1B #5AAF26 #77D53D

Accessibility & contrast

On white

5.04
#407D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#407D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D1B
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D1B#FFFFFF#000000##FFFFFF
##407D1B1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827205
Deuteranopia (green-blind)
#796D25
Tritanopia (blue-blind)
#3D786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d1b;
/* rgb */ color: rgb(64, 125, 27);
/* oklch */ color: oklch(52.9% 0.143 136.5);
Tailwind
colors: {
  custom: {
    50: '#7ba35f',
    500: '#407d1b',
    950: '#000000',
  },
}
SCSS
$custom: #407d1b;
$custom-light: #7ba35f;
$custom-dark: #000000;
JSON
{
  "hex": "#407d1b",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 97.347,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5286,
    "c": 0.1431,
    "h": 136.5
  },
  "luminance": 0.15836
}

Semantic roles & 50–950 ramp

primary
#407D1B
secondary
#8743B1
accent
#40E7A8
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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