#407C15#407C15

#407C15 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.5% C 0.145 H 135.8°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#407C15
RGBrgb(64, 124, 21)
HSLhsl(95, 71%, 28%)
HSVhsv(95, 83%, 49%)
CMYKcmyk(48.4%, 0%, 83.1%, 51.4%)
CIE-LABlab(46.39, -37.23, 45.76)
CIE-LCHlch(46.39, 58.99, 129.13°)
OKLaboklab(52.55% -0.104 0.1011)
OKLCHoklch(52.55% 0.145 135.8)
XYZxyz(9.4571, 15.5588, 3.2141)
Luminance0.1556 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C15 #51157C
analogous
#737C15 #407C15 #157C1D
triadic
#407C15 #15407C #7C1540
tetradic
#407C15 #15737C #51157C #7C1D15
square
#407C15 #15737C #51157C #7C1D15
split-complementary
#407C15 #1D157C #7C1573
monochromatic
#0E1A04 #25480C #407C15 #5BB01E #77DC30

Accessibility & contrast

On white

5.11
#407C15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#407C15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C15
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C15#FFFFFF#000000##FFFFFF
##407C151.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#796C21
Tritanopia (blue-blind)
#3E7769
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c15;
/* rgb */ color: rgb(64, 124, 21);
/* oklch */ color: oklch(52.5% 0.145 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ba25c',
    500: '#407c15',
    950: '#000000',
  },
}
SCSS
$custom: #407c15;
$custom-light: #7ba25c;
$custom-dark: #000000;
JSON
{
  "hex": "#407c15",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 21
  },
  "hsl": {
    "h": 94.951,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52547,
    "c": 0.14502,
    "h": 135.8
  },
  "luminance": 0.15559
}

Semantic roles & 50–950 ramp

primary
#407C15
secondary
#803CB1
accent
#3AEEA3
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407C15

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

Preview Lab → · Contrast checker → · Palette generator →

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