#40641F#40641F

#40641F is a mid, moderate yellow-green. Relative luminance 0.103; OKLCH L 46.0% C 0.106 H 132.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#40641F
RGBrgb(64, 100, 31)
HSLhsl(91, 53%, 26%)
HSVhsv(91, 69%, 39%)
CMYKcmyk(36%, 0%, 69%, 60.8%)
CIE-LABlab(38.38, -25.63, 33.89)
CIE-LCHlch(38.38, 42.49, 127.10°)
OKLaboklab(46.01% -0.0718 0.0778)
OKLCHoklch(46.01% 0.106 132.7)
XYZxyz(6.9187, 10.3030, 2.9202)
Luminance0.1030 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40641F #431F64
analogous
#62641F #40641F #1F6420
triadic
#40641F #1F4064 #641F40
tetradic
#40641F #1F6264 #431F64 #64201F
square
#40641F #1F6264 #431F64 #64201F
split-complementary
#40641F #201F64 #641F62
monochromatic
#0F1707 #223511 #40641F #5E932D #7CC13C

Accessibility & contrast

On white

6.86
#40641F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#40641F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40641F
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40641F#FFFFFF#000000##FFFFFF
##40641F1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685C16
Deuteranopia (green-blind)
#635925
Tritanopia (blue-blind)
#416056
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #40641f;
/* rgb */ color: rgb(64, 100, 31);
/* oklch */ color: oklch(46.0% 0.106 132.7);
Tailwind
colors: {
  custom: {
    50: '#78905e',
    500: '#40641f',
    950: '#000000',
  },
}
SCSS
$custom: #40641f;
$custom-light: #78905e;
$custom-dark: #000000;
JSON
{
  "hex": "#40641f",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 31
  },
  "hsl": {
    "h": 91.304,
    "s": 52.672,
    "l": 25.686
  },
  "oklch": {
    "l": 0.46012,
    "c": 0.10586,
    "h": 132.7
  },
  "luminance": 0.10303
}

Semantic roles & 50–950 ramp

primary
#40641F
secondary
#714698
accent
#4CDC97
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C05
muted
#7B7D79

Preview Lab

Preview with #40641F

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

Preview Lab → · Contrast checker → · Palette generator →

#40641F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva