#406C20#406C20

#406C20 is a mid, moderate yellow-green. Relative luminance 0.119; OKLCH L 48.2% C 0.117 H 134.6°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#406C20
RGBrgb(64, 108, 32)
HSLhsl(95, 54%, 27%)
HSVhsv(95, 70%, 42%)
CMYKcmyk(40.7%, 0%, 70.4%, 57.6%)
CIE-LABlab(41.09, -29.37, 36.33)
CIE-LCHlch(41.09, 46.71, 128.95°)
OKLaboklab(48.22% -0.0819 0.0831)
OKLCHoklch(48.22% 0.117 134.6)
XYZxyz(7.7375, 11.9190, 3.2591)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406C20 #4C206C
analogous
#666C20 #406C20 #206C26
triadic
#406C20 #20406C #6C2040
tetradic
#406C20 #20666C #4C206C #6C2620
square
#406C20 #20666C #4C206C #6C2620
split-complementary
#406C20 #26206C #6C2066
monochromatic
#0E1807 #243D12 #406C20 #5C9B2E #79C640

Accessibility & contrast

On white

6.21
#406C20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#406C20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406C20
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406C20#FFFFFF#000000##FFFFFF
##406C201.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706316
Deuteranopia (green-blind)
#6A6026
Tritanopia (blue-blind)
#3F685D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #406c20;
/* rgb */ color: rgb(64, 108, 32);
/* oklch */ color: oklch(48.2% 0.117 134.6);
Tailwind
colors: {
  custom: {
    50: '#799660',
    500: '#406c20',
    950: '#000000',
  },
}
SCSS
$custom: #406c20;
$custom-light: #799660;
$custom-dark: #000000;
JSON
{
  "hex": "#406c20",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 32
  },
  "hsl": {
    "h": 94.737,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.48224,
    "c": 0.11665,
    "h": 134.6
  },
  "luminance": 0.11919
}

Semantic roles & 50–950 ramp

primary
#406C20
secondary
#7B48A0
accent
#4ADEA0
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406C20

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

Preview Lab → · Contrast checker → · Palette generator →

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