#407E15#407E15

#407E15 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.1% C 0.148 H 136.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#407E15
RGBrgb(64, 126, 21)
HSLhsl(95, 71%, 29%)
HSVhsv(95, 83%, 49%)
CMYKcmyk(49.2%, 0%, 83.3%, 50.6%)
CIE-LABlab(47.06, -38.07, 46.38)
CIE-LCHlch(47.06, 60.00, 129.38°)
OKLaboklab(53.1% -0.1062 0.1024)
OKLCHoklch(53.1% 0.148 136)
XYZxyz(9.7103, 16.0652, 3.2985)
Luminance0.1607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E15 #53157E
analogous
#757E15 #407E15 #157E1F
triadic
#407E15 #15407E #7E1540
tetradic
#407E15 #15757E #53157E #7E1F15
square
#407E15 #15757E #53157E #7E1F15
split-complementary
#407E15 #1F157E #7E1575
monochromatic
#0D1A04 #254A0C #407E15 #5BB21E #77DD31

Accessibility & contrast

On white

4.98
#407E15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#407E15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E15
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E15#FFFFFF#000000##FFFFFF
##407E151.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#3D796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e15;
/* rgb */ color: rgb(64, 126, 21);
/* oklch */ color: oklch(53.1% 0.148 136.0);
Tailwind
colors: {
  custom: {
    50: '#7ca45d',
    500: '#407e15',
    950: '#000000',
  },
}
SCSS
$custom: #407e15;
$custom-light: #7ca45d;
$custom-dark: #000000;
JSON
{
  "hex": "#407e15",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 21
  },
  "hsl": {
    "h": 95.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53098,
    "c": 0.14754,
    "h": 136
  },
  "luminance": 0.16066
}

Semantic roles & 50–950 ramp

primary
#407E15
secondary
#823CB3
accent
#3AEEA4
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407E15

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

Preview Lab → · Contrast checker → · Palette generator →

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