#407819#407819

#407819 is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.5% C 0.138 H 135.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#407819
RGBrgb(64, 120, 25)
HSLhsl(95, 66%, 28%)
HSVhsv(95, 79%, 47%)
CMYKcmyk(46.7%, 0%, 79.2%, 52.9%)
CIE-LABlab(45.07, -35.29, 43.18)
CIE-LCHlch(45.07, 55.77, 129.26°)
OKLaboklab(51.47% -0.0985 0.0964)
OKLCHoklch(51.47% 0.138 135.6)
XYZxyz(9.0061, 14.5926, 3.2616)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407819 #511978
analogous
#6F7819 #407819 #197821
triadic
#407819 #194078 #781940
tetradic
#407819 #196F78 #511978 #782119
square
#407819 #196F78 #511978 #782119
split-complementary
#407819 #211978 #78196F
monochromatic
#0E1905 #25450E #407819 #5BAB24 #77D536

Accessibility & contrast

On white

5.36
#407819 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#407819 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407819
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407819#FFFFFF#000000##FFFFFF
##4078191.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E03
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#3E7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #407819;
/* rgb */ color: rgb(64, 120, 25);
/* oklch */ color: oklch(51.5% 0.138 135.6);
Tailwind
colors: {
  custom: {
    50: '#7b9f5e',
    500: '#407819',
    950: '#000000',
  },
}
SCSS
$custom: #407819;
$custom-light: #7b9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#407819",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 25
  },
  "hsl": {
    "h": 95.368,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51471,
    "c": 0.13777,
    "h": 135.6
  },
  "luminance": 0.14593
}

Semantic roles & 50–950 ramp

primary
#407819
secondary
#8040AD
accent
#3FE8A3
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #407819

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

Preview Lab → · Contrast checker → · Palette generator →

#407819 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva