#407F1C#407F1C

#407F1C is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.4% C 0.145 H 136.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#407F1C
RGBrgb(64, 127, 28)
HSLhsl(98, 64%, 30%)
HSVhsv(98, 78%, 50%)
CMYKcmyk(49.6%, 0%, 78%, 50.2%)
CIE-LABlab(47.43, -38.06, 44.40)
CIE-LCHlch(47.43, 58.48, 130.61°)
OKLaboklab(53.42% -0.1057 0.0994)
OKLCHoklch(53.42% 0.145 136.8)
XYZxyz(9.9130, 16.3519, 3.7323)
Luminance0.1635 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F1C #5B1C7F
analogous
#717F1C #407F1C #1C7F2A
triadic
#407F1C #1C407F #7F1C40
tetradic
#407F1C #1C717F #5B1C7F #7F2A1C
square
#407F1C #1C717F #5B1C7F #7F2A1C
split-complementary
#407F1C #2A1C7F #7F1C71
monochromatic
#0D1B06 #274D11 #407F1C #59B127 #76D540

Accessibility & contrast

On white

4.92
#407F1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#407F1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F1C
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F1C#FFFFFF#000000##FFFFFF
##407F1C1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837406
Deuteranopia (green-blind)
#7B6F26
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f1c;
/* rgb */ color: rgb(64, 127, 28);
/* oklch */ color: oklch(53.4% 0.145 136.8);
Tailwind
colors: {
  custom: {
    50: '#7ba560',
    500: '#407f1c',
    950: '#000000',
  },
}
SCSS
$custom: #407f1c;
$custom-light: #7ba560;
$custom-dark: #000000;
JSON
{
  "hex": "#407f1c",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 98.182,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53417,
    "c": 0.1451,
    "h": 136.8
  },
  "luminance": 0.16353
}

Semantic roles & 50–950 ramp

primary
#407F1C
secondary
#8A44B3
accent
#41E7AB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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