#406428#406428

#406428 is a mid, moderate yellow-green. Relative luminance 0.104; OKLCH L 46.1% C 0.098 H 134.5°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#406428
RGBrgb(64, 100, 40)
HSLhsl(96, 43%, 27%)
HSVhsv(96, 60%, 39%)
CMYKcmyk(36%, 0%, 60%, 60.8%)
CIE-LABlab(38.48, -24.69, 29.53)
CIE-LCHlch(38.48, 38.49, 129.90°)
OKLaboklab(46.12% -0.0684 0.0696)
OKLCHoklch(46.12% 0.098 134.5)
XYZxyz(7.0544, 10.3572, 3.6345)
Luminance0.1036 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406428 #4C2864
analogous
#5E6428 #406428 #28642E
triadic
#406428 #284064 #642840
tetradic
#406428 #285E64 #4C2864 #642E28
square
#406428 #285E64 #4C2864 #642E28
split-complementary
#406428 #2E2864 #64285E
monochromatic
#0E1609 #243817 #406428 #5C9039 #79B84E

Accessibility & contrast

On white

6.84
#406428 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#406428 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406428
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406428#FFFFFF#000000##FFFFFF
##4064281.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685C22
Deuteranopia (green-blind)
#635A2C
Tritanopia (blue-blind)
#406057
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #406428;
/* rgb */ color: rgb(64, 100, 40);
/* oklch */ color: oklch(46.1% 0.098 134.5);
Tailwind
colors: {
  custom: {
    50: '#779064',
    500: '#406428',
    950: '#000000',
  },
}
SCSS
$custom: #406428;
$custom-light: #779064;
$custom-dark: #000000;
JSON
{
  "hex": "#406428",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 40
  },
  "hsl": {
    "h": 96,
    "s": 42.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.46121,
    "c": 0.09757,
    "h": 134.5
  },
  "luminance": 0.10358
}

Semantic roles & 50–950 ramp

primary
#406428
secondary
#7B5197
accent
#55D3A0
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#090C05
muted
#7B7D7A

Preview Lab

Preview with #406428

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

Preview Lab → · Contrast checker → · Palette generator →

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