#407F10#407F10

#407F10 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.3% C 0.151 H 135.8°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#407F10
RGBrgb(64, 127, 16)
HSLhsl(94, 78%, 28%)
HSVhsv(94, 87%, 50%)
CMYKcmyk(49.6%, 0%, 87.4%, 50.2%)
CIE-LABlab(47.37, -38.72, 48.05)
CIE-LCHlch(47.37, 61.72, 128.86°)
OKLaboklab(53.35% -0.1082 0.1052)
OKLCHoklch(53.35% 0.151 135.8)
XYZxyz(9.7970, 16.3055, 3.1211)
Luminance0.1631 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F10 #4F107F
analogous
#777F10 #407F10 #107F17
triadic
#407F10 #10407F #7F1040
tetradic
#407F10 #10777F #4F107F #7F1710
square
#407F10 #10777F #4F107F #7F1710
split-complementary
#407F10 #17107F #7F1077
monochromatic
#0E1B03 #254909 #407F10 #5BB517 #78E426

Accessibility & contrast

On white

4.93
#407F10 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#407F10 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F10
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F10#FFFFFF#000000##FFFFFF
##407F101.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407f10;
/* rgb */ color: rgb(64, 127, 16);
/* oklch */ color: oklch(53.3% 0.151 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ca55b',
    500: '#407f10',
    950: '#000000',
  },
}
SCSS
$custom: #407f10;
$custom-light: #7ca55b;
$custom-dark: #000000;
JSON
{
  "hex": "#407f10",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 16
  },
  "hsl": {
    "h": 94.054,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53348,
    "c": 0.15093,
    "h": 135.8
  },
  "luminance": 0.16306
}

Semantic roles & 50–950 ramp

primary
#407F10
secondary
#7E36B5
accent
#34F4A1
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407F10

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

Preview Lab → · Contrast checker → · Palette generator →

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