#408316#408316

#408316 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.5% C 0.153 H 136.7°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#408316
RGBrgb(64, 131, 22)
HSLhsl(97, 71%, 30%)
HSVhsv(97, 83%, 51%)
CMYKcmyk(51.1%, 0%, 83.2%, 48.6%)
CIE-LABlab(48.74, -40.07, 47.62)
CIE-LCHlch(48.74, 62.24, 130.08°)
OKLaboklab(54.48% -0.1115 0.1052)
OKLCHoklch(54.48% 0.153 136.7)
XYZxyz(10.3752, 17.3798, 3.5668)
Luminance0.1738 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408316 #591683
analogous
#768316 #408316 #168323
triadic
#408316 #164083 #831640
tetradic
#408316 #167683 #591683 #832316
square
#408316 #167683 #591683 #832316
split-complementary
#408316 #231683 #831676
monochromatic
#0D1A04 #264F0D #408316 #5AB71F #77DD36

Accessibility & contrast

On white

4.69
#408316 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#408316 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408316
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408316#FFFFFF#000000##FFFFFF
##4083161.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7F7223
Tritanopia (blue-blind)
#3C7E6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #408316;
/* rgb */ color: rgb(64, 131, 22);
/* oklch */ color: oklch(54.5% 0.153 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ca85e',
    500: '#408316',
    950: '#000000',
  },
}
SCSS
$custom: #408316;
$custom-light: #7ca85e;
$custom-dark: #000000;
JSON
{
  "hex": "#408316",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 22
  },
  "hsl": {
    "h": 96.881,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.54477,
    "c": 0.15329,
    "h": 136.7
  },
  "luminance": 0.17381
}

Semantic roles & 50–950 ramp

primary
#408316
secondary
#883DB7
accent
#3AEEA9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408316

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

Preview Lab → · Contrast checker → · Palette generator →

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