#406112#406112

#406112 is a mid, moderate yellow-green. Relative luminance 0.097; OKLCH L 45.1% C 0.111 H 130.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#406112
RGBrgb(64, 97, 18)
HSLhsl(85, 69%, 23%)
HSVhsv(85, 81%, 38%)
CMYKcmyk(34%, 0%, 81.4%, 62%)
CIE-LABlab(37.27, -25.15, 38.22)
CIE-LCHlch(37.27, 45.75, 123.35°)
OKLaboklab(45.07% -0.0716 0.0848)
OKLCHoklch(45.07% 0.111 130.2)
XYZxyz(6.4982, 9.6828, 2.0987)
Luminance0.0968 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406112 #331261
analogous
#615A12 #406112 #196112
triadic
#406112 #124061 #611240
tetradic
#406112 #12615A #331261 #611219
square
#406112 #12615A #331261 #611219
split-complementary
#406112 #121961 #5A1261
monochromatic
#111A05 #1E2D08 #406112 #62951C #84C825

Accessibility & contrast

On white

7.15
#406112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#406112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #406112
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406112#FFFFFF#000000##FFFFFF
##4061121.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665901
Deuteranopia (green-blind)
#61571A
Tritanopia (blue-blind)
#425C52
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #406112;
/* rgb */ color: rgb(64, 97, 18);
/* oklch */ color: oklch(45.1% 0.111 130.2);
Tailwind
colors: {
  custom: {
    50: '#788e57',
    500: '#406112',
    950: '#000000',
  },
}
SCSS
$custom: #406112;
$custom-light: #788e57;
$custom-dark: #000000;
JSON
{
  "hex": "#406112",
  "rgb": {
    "r": 64,
    "g": 97,
    "b": 18
  },
  "hsl": {
    "h": 85.063,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.45073,
    "c": 0.11098,
    "h": 130.2
  },
  "luminance": 0.09683
}

Semantic roles & 50–950 ramp

primary
#406112
secondary
#5F3699
accent
#3CEC85
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #406112

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

Preview Lab → · Contrast checker → · Palette generator →

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