#407C1C#407C1C

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

Color values

HEX#407C1C
RGBrgb(64, 124, 28)
HSLhsl(98, 63%, 30%)
HSVhsv(98, 77%, 49%)
CMYKcmyk(48.4%, 0%, 77.4%, 51.4%)
CIE-LABlab(46.43, -36.80, 43.42)
CIE-LCHlch(46.43, 56.91, 130.28°)
OKLaboklab(52.59% -0.1023 0.0973)
OKLCHoklch(52.59% 0.141 136.4)
XYZxyz(9.5313, 15.5885, 3.6050)
Luminance0.1559 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C1C #581C7C
analogous
#707C1C #407C1C #1C7C28
triadic
#407C1C #1C407C #7C1C40
tetradic
#407C1C #1C707C #581C7C #7C281C
square
#407C1C #1C707C #581C7C #7C281C
split-complementary
#407C1C #281C7C #7C1C70
monochromatic
#0D1906 #264A11 #407C1C #5AAE27 #77D43F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407C1C#FFFFFF#000000##FFFFFF
##407C1C1.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)
#807108
Deuteranopia (green-blind)
#796C26
Tritanopia (blue-blind)
#3D776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c1c;
/* rgb */ color: rgb(64, 124, 28);
/* oklch */ color: oklch(52.6% 0.141 136.4);
Tailwind
colors: {
  custom: {
    50: '#7ba260',
    500: '#407c1c',
    950: '#000000',
  },
}
SCSS
$custom: #407c1c;
$custom-light: #7ba260;
$custom-dark: #000000;
JSON
{
  "hex": "#407c1c",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 28
  },
  "hsl": {
    "h": 97.5,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52592,
    "c": 0.14122,
    "h": 136.4
  },
  "luminance": 0.15589
}

Semantic roles & 50–950 ramp

primary
#407C1C
secondary
#8744B0
accent
#42E6A8
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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