#407212#407212

#407212 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.8% C 0.134 H 134.1°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#407212
RGBrgb(64, 114, 18)
HSLhsl(91, 73%, 26%)
HSVhsv(91, 84%, 45%)
CMYKcmyk(43.9%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.02, -33.08, 43.58)
CIE-LCHlch(43.02, 54.71, 127.20°)
OKLaboklab(49.77% -0.093 0.0961)
OKLCHoklch(49.77% 0.134 134.1)
XYZxyz(8.2407, 13.1678, 2.6796)
Luminance0.1317 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407212 #441272
analogous
#707212 #407212 #127214
triadic
#407212 #124072 #721240
tetradic
#407212 #127072 #441272 #721412
square
#407212 #127072 #441272 #721412
split-complementary
#407212 #141272 #721270
monochromatic
#0F1A04 #223D0A #407212 #5EA71A #7BDC23

Accessibility & contrast

On white

5.78
#407212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#407212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407212
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407212#FFFFFF#000000##FFFFFF
##4072121.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#70641D
Tritanopia (blue-blind)
#3F6D61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407212;
/* rgb */ color: rgb(64, 114, 18);
/* oklch */ color: oklch(49.8% 0.134 134.1);
Tailwind
colors: {
  custom: {
    50: '#7a9b5a',
    500: '#407212',
    950: '#000000',
  },
}
SCSS
$custom: #407212;
$custom-light: #7a9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#407212",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 91.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49772,
    "c": 0.13369,
    "h": 134.1
  },
  "luminance": 0.13168
}

Semantic roles & 50–950 ramp

primary
#407212
secondary
#7237A9
accent
#38EF98
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407212

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

Preview Lab → · Contrast checker → · Palette generator →

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