#407D1C#407D1C

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

Color values

HEX#407D1C
RGBrgb(64, 125, 28)
HSLhsl(98, 63%, 30%)
HSVhsv(98, 78%, 49%)
CMYKcmyk(48.8%, 0%, 77.6%, 51%)
CIE-LABlab(46.76, -37.22, 43.74)
CIE-LCHlch(46.76, 57.44, 130.39°)
OKLaboklab(52.87% -0.1035 0.098)
OKLCHoklch(52.87% 0.143 136.6)
XYZxyz(9.6573, 15.8404, 3.6470)
Luminance0.1584 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D1C #591C7D
analogous
#717D1C #407D1C #1C7D28
triadic
#407D1C #1C407D #7D1C40
tetradic
#407D1C #1C717D #591C7D #7D281C
square
#407D1C #1C717D #591C7D #7D281C
split-complementary
#407D1C #281C7D #7D1C71
monochromatic
#0D1906 #264B11 #407D1C #5AAF27 #77D43F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407D1C#FFFFFF#000000##FFFFFF
##407D1C1.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)
#817207
Deuteranopia (green-blind)
#796D26
Tritanopia (blue-blind)
#3D786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d1c;
/* rgb */ color: rgb(64, 125, 28);
/* oklch */ color: oklch(52.9% 0.143 136.6);
Tailwind
colors: {
  custom: {
    50: '#7ba360',
    500: '#407d1c',
    950: '#000000',
  },
}
SCSS
$custom: #407d1c;
$custom-light: #7ba360;
$custom-dark: #000000;
JSON
{
  "hex": "#407d1c",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 97.732,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.52867,
    "c": 0.14251,
    "h": 136.6
  },
  "luminance": 0.15841
}

Semantic roles & 50–950 ramp

primary
#407D1C
secondary
#8844B1
accent
#41E6A9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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