#407F19#407F19

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

Color values

HEX#407F19
RGBrgb(64, 127, 25)
HSLhsl(97, 67%, 30%)
HSVhsv(97, 80%, 50%)
CMYKcmyk(49.6%, 0%, 80.3%, 50.2%)
CIE-LABlab(47.42, -38.26, 45.43)
CIE-LCHlch(47.42, 59.39, 130.10°)
OKLaboklab(53.4% -0.1065 0.1011)
OKLCHoklch(53.4% 0.147 136.5)
XYZxyz(9.8789, 16.3383, 3.5526)
Luminance0.1634 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F19 #58197F
analogous
#737F19 #407F19 #197F25
triadic
#407F19 #19407F #7F1940
tetradic
#407F19 #19737F #58197F #7F2519
square
#407F19 #19737F #58197F #7F2519
split-complementary
#407F19 #25197F #7F1973
monochromatic
#0D1A05 #264C0F #407F19 #5AB223 #77D83A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407F19#FFFFFF#000000##FFFFFF
##407F191.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)
#847400
Deuteranopia (green-blind)
#7B6F24
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f19;
/* rgb */ color: rgb(64, 127, 25);
/* oklch */ color: oklch(53.4% 0.147 136.5);
Tailwind
colors: {
  custom: {
    50: '#7ca55f',
    500: '#407f19',
    950: '#000000',
  },
}
SCSS
$custom: #407f19;
$custom-light: #7ca55f;
$custom-dark: #000000;
JSON
{
  "hex": "#407f19",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 25
  },
  "hsl": {
    "h": 97.059,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53396,
    "c": 0.14678,
    "h": 136.5
  },
  "luminance": 0.16339
}

Semantic roles & 50–950 ramp

primary
#407F19
secondary
#8741B3
accent
#3EEAA8
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F19

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

Preview Lab → · Contrast checker → · Palette generator →

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