#407D21#407D21

#407D21 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 52.9% C 0.139 H 137.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#407D21
RGBrgb(64, 125, 33)
HSLhsl(100, 58%, 31%)
HSVhsv(100, 74%, 49%)
CMYKcmyk(48.8%, 0%, 73.6%, 51%)
CIE-LABlab(46.80, -36.85, 41.85)
CIE-LCHlch(46.80, 55.76, 131.36°)
OKLaboklab(52.91% -0.1021 0.0948)
OKLCHoklch(52.91% 0.139 137.1)
XYZxyz(9.7222, 15.8664, 3.9888)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D21 #5E217D
analogous
#6E7D21 #407D21 #217D30
triadic
#407D21 #21407D #7D2140
tetradic
#407D21 #216E7D #5E217D #7D3021
square
#407D21 #216E7D #5E217D #7D3021
split-complementary
#407D21 #30217D #7D216E
monochromatic
#0E1C07 #274D14 #407D21 #59AD2E #76CF49

Accessibility & contrast

On white

5.03
#407D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#407D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D21
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D21#FFFFFF#000000##FFFFFF
##407D211.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817212
Deuteranopia (green-blind)
#796D2A
Tritanopia (blue-blind)
#3C786B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d21;
/* rgb */ color: rgb(64, 125, 33);
/* oklch */ color: oklch(52.9% 0.139 137.1);
Tailwind
colors: {
  custom: {
    50: '#7ba362',
    500: '#407d21',
    950: '#000000',
  },
}
SCSS
$custom: #407d21;
$custom-light: #7ba362;
$custom-dark: #000000;
JSON
{
  "hex": "#407d21",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 99.783,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52906,
    "c": 0.13933,
    "h": 137.1
  },
  "luminance": 0.15867
}

Semantic roles & 50–950 ramp

primary
#407D21
secondary
#8E4AB0
accent
#46E1AD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407D21

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

Preview Lab → · Contrast checker → · Palette generator →

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