#407D15#407D15

#407D15 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.8% C 0.146 H 135.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#407D15
RGBrgb(64, 125, 21)
HSLhsl(95, 71%, 29%)
HSVhsv(95, 83%, 49%)
CMYKcmyk(48.8%, 0%, 83.2%, 51%)
CIE-LABlab(46.73, -37.65, 46.07)
CIE-LCHlch(46.73, 59.50, 129.26°)
OKLaboklab(52.82% -0.1051 0.1018)
OKLCHoklch(52.82% 0.146 135.9)
XYZxyz(9.5831, 15.8107, 3.2561)
Luminance0.1581 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D15 #52157D
analogous
#747D15 #407D15 #157D1E
triadic
#407D15 #15407D #7D1540
tetradic
#407D15 #15747D #52157D #7D1E15
square
#407D15 #15747D #52157D #7D1E15
split-complementary
#407D15 #1E157D #7D1574
monochromatic
#0D1A04 #25490C #407D15 #5BB11E #77DC30

Accessibility & contrast

On white

5.05
#407D15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#407D15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D15
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D15#FFFFFF#000000##FFFFFF
##407D151.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7A6D21
Tritanopia (blue-blind)
#3D786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d15;
/* rgb */ color: rgb(64, 125, 21);
/* oklch */ color: oklch(52.8% 0.146 135.9);
Tailwind
colors: {
  custom: {
    50: '#7ba35d',
    500: '#407d15',
    950: '#000000',
  },
}
SCSS
$custom: #407d15;
$custom-light: #7ba35d;
$custom-dark: #000000;
JSON
{
  "hex": "#407d15",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 21
  },
  "hsl": {
    "h": 95.192,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52822,
    "c": 0.14628,
    "h": 135.9
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#407D15
secondary
#813CB2
accent
#3AEEA3
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407D15

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

Preview Lab → · Contrast checker → · Palette generator →

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