#407B20#407B20

#407B20 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.3% C 0.137 H 136.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#407B20
RGBrgb(64, 123, 32)
HSLhsl(99, 59%, 30%)
HSVhsv(99, 74%, 48%)
CMYKcmyk(48%, 0%, 74%, 51.8%)
CIE-LABlab(46.12, -36.07, 41.56)
CIE-LCHlch(46.12, 55.04, 130.96°)
OKLaboklab(52.35% -0.1001 0.094)
OKLCHoklch(52.35% 0.137 136.8)
XYZxyz(9.4577, 15.3596, 3.8326)
Luminance0.1536 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B20 #5B207B
analogous
#6D7B20 #407B20 #207B2D
triadic
#407B20 #20407B #7B2040
tetradic
#407B20 #206D7B #5B207B #7B2D20
square
#407B20 #206D7B #5B207B #7B2D20
split-complementary
#407B20 #2D207B #7B206D
monochromatic
#0D1A07 #274A13 #407B20 #59AC2D #76CF46

Accessibility & contrast

On white

5.16
#407B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#407B20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B20
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B20#FFFFFF#000000##FFFFFF
##407B201.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7011
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#3D7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b20;
/* rgb */ color: rgb(64, 123, 32);
/* oklch */ color: oklch(52.3% 0.137 136.8);
Tailwind
colors: {
  custom: {
    50: '#7ba262',
    500: '#407b20',
    950: '#000000',
  },
}
SCSS
$custom: #407b20;
$custom-light: #7ba262;
$custom-dark: #000000;
JSON
{
  "hex": "#407b20",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 98.901,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52349,
    "c": 0.13734,
    "h": 136.8
  },
  "luminance": 0.1536
}

Semantic roles & 50–950 ramp

primary
#407B20
secondary
#8A49AE
accent
#46E2AB
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407B20

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

Preview Lab → · Contrast checker → · Palette generator →

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