#407B16#407B16

#407B16 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.3% C 0.143 H 135.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#407B16
RGBrgb(64, 123, 22)
HSLhsl(95, 70%, 28%)
HSVhsv(95, 82%, 48%)
CMYKcmyk(48%, 0%, 82.1%, 51.8%)
CIE-LABlab(46.06, -36.75, 45.14)
CIE-LCHlch(46.06, 58.21, 129.16°)
OKLaboklab(52.28% -0.1026 0.1)
OKLCHoklch(52.28% 0.143 135.8)
XYZxyz(9.3419, 15.3132, 3.2224)
Luminance0.1531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B16 #51167B
analogous
#727B16 #407B16 #167B1F
triadic
#407B16 #16407B #7B1640
tetradic
#407B16 #16727B #51167B #7B1F16
square
#407B16 #16727B #51167B #7B1F16
split-complementary
#407B16 #1F167B #7B1672
monochromatic
#0E1A05 #25470D #407B16 #5BAF1F #77DA31

Accessibility & contrast

On white

5.17
#407B16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#407B16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B16
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B16#FFFFFF#000000##FFFFFF
##407B161.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#786B22
Tritanopia (blue-blind)
#3E7668
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b16;
/* rgb */ color: rgb(64, 123, 22);
/* oklch */ color: oklch(52.3% 0.143 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ba25d',
    500: '#407b16',
    950: '#000000',
  },
}
SCSS
$custom: #407b16;
$custom-light: #7ba25d;
$custom-dark: #000000;
JSON
{
  "hex": "#407b16",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 95.05,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52278,
    "c": 0.14326,
    "h": 135.8
  },
  "luminance": 0.15314
}

Semantic roles & 50–950 ramp

primary
#407B16
secondary
#803DB0
accent
#3BECA3
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407B16

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

Preview Lab → · Contrast checker → · Palette generator →

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