#407112#407112

#407112 is a mid, vivid yellow-green. Relative luminance 0.129; OKLCH L 49.5% C 0.132 H 133.9°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#407112
RGBrgb(64, 113, 18)
HSLhsl(91, 73%, 26%)
HSVhsv(91, 84%, 44%)
CMYKcmyk(43.4%, 0%, 84.1%, 55.7%)
CIE-LABlab(42.68, -32.63, 43.27)
CIE-LCHlch(42.68, 54.19, 127.02°)
OKLaboklab(49.5% -0.0918 0.0954)
OKLCHoklch(49.5% 0.132 133.9)
XYZxyz(8.1285, 12.9435, 2.6422)
Luminance0.1294 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407112 #431271
analogous
#6F7112 #407112 #127113
triadic
#407112 #124071 #711240
tetradic
#407112 #126F71 #431271 #711312
square
#407112 #126F71 #431271 #711312
split-complementary
#407112 #131271 #71126F
monochromatic
#0F1A04 #223C0A #407112 #5EA61A #7CDB23

Accessibility & contrast

On white

5.85
#407112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#407112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407112
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407112#FFFFFF#000000##FFFFFF
##4071121.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6F631D
Tritanopia (blue-blind)
#406C60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #407112;
/* rgb */ color: rgb(64, 113, 18);
/* oklch */ color: oklch(49.5% 0.132 133.9);
Tailwind
colors: {
  custom: {
    50: '#7a9a59',
    500: '#407112',
    950: '#000000',
  },
}
SCSS
$custom: #407112;
$custom-light: #7a9a59;
$custom-dark: #000000;
JSON
{
  "hex": "#407112",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 90.947,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.49496,
    "c": 0.13239,
    "h": 133.9
  },
  "luminance": 0.12944
}

Semantic roles & 50–950 ramp

primary
#407112
secondary
#7137A8
accent
#39EF97
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407112

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

Preview Lab → · Contrast checker → · Palette generator →

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