#406F23#406F23

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

Color values

HEX#406F23
RGBrgb(64, 111, 35)
HSLhsl(97, 52%, 29%)
HSVhsv(97, 68%, 44%)
CMYKcmyk(42.3%, 0%, 68.5%, 56.5%)
CIE-LABlab(42.12, -30.48, 36.07)
CIE-LCHlch(42.12, 47.23, 130.20°)
OKLaboklab(49.08% -0.0847 0.0829)
OKLCHoklch(49.08% 0.119 135.6)
XYZxyz(8.1020, 12.5798, 3.5910)
Luminance0.1258 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406F23 #52236F
analogous
#666F23 #406F23 #236F2C
triadic
#406F23 #23406F #6F2340
tetradic
#406F23 #23666F #52236F #6F2C23
square
#406F23 #23666F #52236F #6F2C23
split-complementary
#406F23 #2C236F #6F2366
monochromatic
#0D1707 #254014 #406F23 #5B9E32 #77C547

Accessibility & contrast

On white

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

On black

3.52
#406F23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##406F23#FFFFFF#000000##FFFFFF
##406F231.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #406f23;
/* rgb */ color: rgb(64, 111, 35);
/* oklch */ color: oklch(49.1% 0.119 135.6);
Tailwind
colors: {
  custom: {
    50: '#799962',
    500: '#406f23',
    950: '#000000',
  },
}
SCSS
$custom: #406f23;
$custom-light: #799962;
$custom-dark: #000000;
JSON
{
  "hex": "#406f23",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 35
  },
  "hsl": {
    "h": 97.105,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49079,
    "c": 0.11853,
    "h": 135.6
  },
  "luminance": 0.1258
}

Semantic roles & 50–950 ramp

primary
#406F23
secondary
#814CA2
accent
#4CDBA5
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #406F23

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

Preview Lab → · Contrast checker → · Palette generator →

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