#407B1C#407B1C

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

Color values

HEX#407B1C
RGBrgb(64, 123, 28)
HSLhsl(97, 63%, 30%)
HSVhsv(97, 77%, 48%)
CMYKcmyk(48%, 0%, 77.2%, 51.8%)
CIE-LABlab(46.10, -36.37, 43.09)
CIE-LCHlch(46.10, 56.39, 130.17°)
OKLaboklab(52.32% -0.1012 0.0966)
OKLCHoklch(52.32% 0.14 136.3)
XYZxyz(9.4067, 15.3391, 3.5635)
Luminance0.1534 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B1C #571C7B
analogous
#707B1C #407B1C #1C7B27
triadic
#407B1C #1C407B #7B1C40
tetradic
#407B1C #1C707B #571C7B #7B271C
square
#407B1C #1C707B #571C7B #7B271C
split-complementary
#407B1C #271C7B #7B1C70
monochromatic
#0D1906 #264911 #407B1C #5AAD27 #77D33E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407B1C#FFFFFF#000000##FFFFFF
##407B1C1.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)
#7F7008
Deuteranopia (green-blind)
#786B26
Tritanopia (blue-blind)
#3D7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b1c;
/* rgb */ color: rgb(64, 123, 28);
/* oklch */ color: oklch(52.3% 0.140 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ba260',
    500: '#407b1c',
    950: '#000000',
  },
}
SCSS
$custom: #407b1c;
$custom-light: #7ba260;
$custom-dark: #000000;
JSON
{
  "hex": "#407b1c",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 97.263,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52318,
    "c": 0.13991,
    "h": 136.3
  },
  "luminance": 0.1534
}

Semantic roles & 50–950 ramp

primary
#407B1C
secondary
#8644AF
accent
#42E6A8
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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