#406F22#406F22

#406F22 is a mid, moderate yellow-green. Relative luminance 0.126; OKLCH L 49.1% C 0.119 H 135.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#406F22
RGBrgb(64, 111, 34)
HSLhsl(97, 53%, 28%)
HSVhsv(97, 69%, 44%)
CMYKcmyk(42.3%, 0%, 69.4%, 56.5%)
CIE-LABlab(42.11, -30.57, 36.52)
CIE-LCHlch(42.11, 47.63, 129.94°)
OKLaboklab(49.07% -0.085 0.0837)
OKLCHoklch(49.07% 0.119 135.4)
XYZxyz(8.0873, 12.5739, 3.5139)
Luminance0.1257 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406F22 #51226F
analogous
#666F22 #406F22 #226F2A
triadic
#406F22 #22406F #6F2240
tetradic
#406F22 #22666F #51226F #6F2A22
square
#406F22 #22666F #51226F #6F2A22
split-complementary
#406F22 #2A226F #6F2266
monochromatic
#0E1707 #254014 #406F22 #5B9E30 #77C645

Accessibility & contrast

On white

5.97
#406F22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#406F22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406F22
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406F22#FFFFFF#000000##FFFFFF
##406F221.005.973.515.97
#FFFFFF5.971.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736618
Deuteranopia (green-blind)
#6D6229
Tritanopia (blue-blind)
#3F6B5F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #406f22;
/* rgb */ color: rgb(64, 111, 34);
/* oklch */ color: oklch(49.1% 0.119 135.4);
Tailwind
colors: {
  custom: {
    50: '#799961',
    500: '#406f22',
    950: '#000000',
  },
}
SCSS
$custom: #406f22;
$custom-light: #799961;
$custom-dark: #000000;
JSON
{
  "hex": "#406f22",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 34
  },
  "hsl": {
    "h": 96.623,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49069,
    "c": 0.11934,
    "h": 135.4
  },
  "luminance": 0.12574
}

Semantic roles & 50–950 ramp

primary
#406F22
secondary
#804AA2
accent
#4BDDA4
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #406F22

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

Preview Lab → · Contrast checker → · Palette generator →

#406F22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva