#407A15#407A15

#407A15 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.0% C 0.142 H 135.5°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#407A15
RGBrgb(64, 122, 21)
HSLhsl(94, 71%, 28%)
HSVhsv(94, 83%, 48%)
CMYKcmyk(47.5%, 0%, 82.8%, 52.2%)
CIE-LABlab(45.72, -36.39, 45.14)
CIE-LCHlch(45.72, 57.98, 128.87°)
OKLaboklab(52% -0.1017 0.0998)
OKLCHoklch(52% 0.142 135.5)
XYZxyz(9.2090, 15.0626, 3.1314)
Luminance0.1506 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A15 #4F157A
analogous
#727A15 #407A15 #157A1C
triadic
#407A15 #15407A #7A1540
tetradic
#407A15 #15727A #4F157A #7A1C15
square
#407A15 #15727A #4F157A #7A1C15
split-complementary
#407A15 #1C157A #7A1572
monochromatic
#0E1A04 #25460C #407A15 #5BAE1E #78DB2E

Accessibility & contrast

On white

5.23
#407A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#407A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A15
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A15#FFFFFF#000000##FFFFFF
##407A151.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#776B21
Tritanopia (blue-blind)
#3E7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a15;
/* rgb */ color: rgb(64, 122, 21);
/* oklch */ color: oklch(52.0% 0.142 135.5);
Tailwind
colors: {
  custom: {
    50: '#7ba15c',
    500: '#407a15',
    950: '#000000',
  },
}
SCSS
$custom: #407a15;
$custom-light: #7ba15c;
$custom-dark: #000000;
JSON
{
  "hex": "#407a15",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 94.455,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51996,
    "c": 0.14249,
    "h": 135.5
  },
  "luminance": 0.15063
}

Semantic roles & 50–950 ramp

primary
#407A15
secondary
#7E3BAF
accent
#3AEDA1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F04
muted
#7C7E79

Preview Lab

Preview with #407A15

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

Preview Lab → · Contrast checker → · Palette generator →

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