#407B1B#407B1B

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

Color values

HEX#407B1B
RGBrgb(64, 123, 27)
HSLhsl(97, 64%, 29%)
HSVhsv(97, 78%, 48%)
CMYKcmyk(48%, 0%, 78%, 51.8%)
CIE-LABlab(46.09, -36.44, 43.45)
CIE-LCHlch(46.09, 56.71, 129.99°)
OKLaboklab(52.31% -0.1014 0.0972)
OKLCHoklch(52.31% 0.141 136.2)
XYZxyz(9.3949, 15.3344, 3.5015)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B1B #561B7B
analogous
#707B1B #407B1B #1B7B26
triadic
#407B1B #1B407B #7B1B40
tetradic
#407B1B #1B707B #561B7B #7B261B
square
#407B1B #1B707B #561B7B #7B261B
split-complementary
#407B1B #261B7B #7B1B70
monochromatic
#0D1906 #264910 #407B1B #5AAD26 #77D43C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407B1B#FFFFFF#000000##FFFFFF
##407B1B1.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)
#807006
Deuteranopia (green-blind)
#786B25
Tritanopia (blue-blind)
#3D7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b1b;
/* rgb */ color: rgb(64, 123, 27);
/* oklch */ color: oklch(52.3% 0.141 136.2);
Tailwind
colors: {
  custom: {
    50: '#7ba25f',
    500: '#407b1b',
    950: '#000000',
  },
}
SCSS
$custom: #407b1b;
$custom-light: #7ba25f;
$custom-dark: #000000;
JSON
{
  "hex": "#407b1b",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 27
  },
  "hsl": {
    "h": 96.875,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5231,
    "c": 0.14051,
    "h": 136.2
  },
  "luminance": 0.15335
}

Semantic roles & 50–950 ramp

primary
#407B1B
secondary
#8543AF
accent
#41E7A7
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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