#407C20#407C20

#407C20 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.6% C 0.139 H 136.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#407C20
RGBrgb(64, 124, 32)
HSLhsl(99, 59%, 31%)
HSVhsv(99, 74%, 49%)
CMYKcmyk(48.4%, 0%, 74.2%, 51.4%)
CIE-LABlab(46.46, -36.50, 41.90)
CIE-LCHlch(46.46, 55.57, 131.06°)
OKLaboklab(52.62% -0.1013 0.0948)
OKLCHoklch(52.62% 0.139 136.9)
XYZxyz(9.5824, 15.6090, 3.8741)
Luminance0.1561 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C20 #5C207C
analogous
#6E7C20 #407C20 #207C2E
triadic
#407C20 #20407C #7C2040
tetradic
#407C20 #206E7C #5C207C #7C2E20
square
#407C20 #206E7C #5C207C #7C2E20
split-complementary
#407C20 #2E207C #7C206E
monochromatic
#0E1B07 #274B13 #407C20 #59AD2D #76CF47

Accessibility & contrast

On white

5.09
#407C20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#407C20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C20
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C20#FFFFFF#000000##FFFFFF
##407C201.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#3D776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c20;
/* rgb */ color: rgb(64, 124, 32);
/* oklch */ color: oklch(52.6% 0.139 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ba262',
    500: '#407c20',
    950: '#000000',
  },
}
SCSS
$custom: #407c20;
$custom-light: #7ba262;
$custom-dark: #000000;
JSON
{
  "hex": "#407c20",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 32
  },
  "hsl": {
    "h": 99.13,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52624,
    "c": 0.13867,
    "h": 136.9
  },
  "luminance": 0.1561
}

Semantic roles & 50–950 ramp

primary
#407C20
secondary
#8B49AF
accent
#46E2AC
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407C20

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

Preview Lab → · Contrast checker → · Palette generator →

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