#407211#407211

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

Color values

HEX#407211
RGBrgb(64, 114, 17)
HSLhsl(91, 74%, 26%)
HSVhsv(91, 85%, 45%)
CMYKcmyk(43.9%, 0%, 85.1%, 55.3%)
CIE-LABlab(43.01, -33.13, 43.87)
CIE-LCHlch(43.01, 54.98, 127.05°)
OKLaboklab(49.77% -0.0932 0.0965)
OKLCHoklch(49.77% 0.134 134)
XYZxyz(8.2327, 13.1646, 2.6374)
Luminance0.1316 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407211 #431172
analogous
#707211 #407211 #117212
triadic
#407211 #114072 #721140
tetradic
#407211 #117072 #431172 #721211
square
#407211 #117072 #431172 #721211
split-complementary
#407211 #121172 #721170
monochromatic
#0F1B04 #223D09 #407211 #5EA719 #7CDD21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407211#FFFFFF#000000##FFFFFF
##4072111.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: #407211;
/* rgb */ color: rgb(64, 114, 17);
/* oklch */ color: oklch(49.8% 0.134 134.0);
Tailwind
colors: {
  custom: {
    50: '#7a9b59',
    500: '#407211',
    950: '#000000',
  },
}
SCSS
$custom: #407211;
$custom-light: #7a9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#407211",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 90.928,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.49766,
    "c": 0.13416,
    "h": 134
  },
  "luminance": 0.13165
}

Semantic roles & 50–950 ramp

primary
#407211
secondary
#7136A9
accent
#37F197
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407211

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

Preview Lab → · Contrast checker → · Palette generator →

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