#40671B#40671B

#40671B is a mid, moderate yellow-green. Relative luminance 0.109; OKLCH L 46.8% C 0.113 H 132.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#40671B
RGBrgb(64, 103, 27)
HSLhsl(91, 58%, 25%)
HSVhsv(91, 74%, 40%)
CMYKcmyk(37.9%, 0%, 73.8%, 59.6%)
CIE-LABlab(39.36, -27.43, 36.72)
CIE-LCHlch(39.36, 45.83, 126.76°)
OKLaboklab(46.8% -0.077 0.0831)
OKLCHoklch(46.8% 0.113 132.8)
XYZxyz(7.1623, 10.8693, 2.7573)
Luminance0.1087 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40671B #421B67
analogous
#66671B #40671B #1B671C
triadic
#40671B #1B4067 #671B40
tetradic
#40671B #1B6667 #421B67 #671C1B
square
#40671B #1B6667 #421B67 #671C1B
split-complementary
#40671B #1C1B67 #671B66
monochromatic
#0F1806 #22370E #40671B #5E9728 #7CC834

Accessibility & contrast

On white

6.62
#40671B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#40671B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40671B
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40671B#FFFFFF#000000##FFFFFF
##40671B1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5F0F
Deuteranopia (green-blind)
#665C22
Tritanopia (blue-blind)
#406358
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #40671b;
/* rgb */ color: rgb(64, 103, 27);
/* oklch */ color: oklch(46.8% 0.113 132.8);
Tailwind
colors: {
  custom: {
    50: '#78925c',
    500: '#40671b',
    950: '#000000',
  },
}
SCSS
$custom: #40671b;
$custom-light: #78925c;
$custom-dark: #000000;
JSON
{
  "hex": "#40671b",
  "rgb": {
    "r": 64,
    "g": 103,
    "b": 27
  },
  "hsl": {
    "h": 90.789,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.46799,
    "c": 0.11335,
    "h": 132.8
  },
  "luminance": 0.1087
}

Semantic roles & 50–950 ramp

primary
#40671B
secondary
#70429C
accent
#46E296
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #40671B

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

Preview Lab → · Contrast checker → · Palette generator →

#40671B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva