#407F15#407F15

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

Color values

HEX#407F15
RGBrgb(64, 127, 21)
HSLhsl(96, 72%, 29%)
HSVhsv(96, 83%, 50%)
CMYKcmyk(49.6%, 0%, 83.5%, 50.2%)
CIE-LABlab(47.39, -38.48, 46.68)
CIE-LCHlch(47.39, 60.50, 129.50°)
OKLaboklab(53.37% -0.1073 0.1031)
OKLCHoklch(53.37% 0.149 136.2)
XYZxyz(9.8388, 16.3222, 3.3414)
Luminance0.1632 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F15 #54157F
analogous
#757F15 #407F15 #157F1F
triadic
#407F15 #15407F #7F1540
tetradic
#407F15 #15757F #54157F #7F1F15
square
#407F15 #15757F #54157F #7F1F15
split-complementary
#407F15 #1F157F #7F1575
monochromatic
#0D1A04 #264A0C #407F15 #5AB41E #77DD31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407F15#FFFFFF#000000##FFFFFF
##407F151.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407f15;
/* rgb */ color: rgb(64, 127, 21);
/* oklch */ color: oklch(53.4% 0.149 136.2);
Tailwind
colors: {
  custom: {
    50: '#7ca55d',
    500: '#407f15',
    950: '#000000',
  },
}
SCSS
$custom: #407f15;
$custom-light: #7ca55d;
$custom-dark: #000000;
JSON
{
  "hex": "#407f15",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 95.66,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53373,
    "c": 0.14878,
    "h": 136.2
  },
  "luminance": 0.16323
}

Semantic roles & 50–950 ramp

primary
#407F15
secondary
#833CB4
accent
#39EEA5
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F15

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

Preview Lab → · Contrast checker → · Palette generator →

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