#40661B#40661B

#40661B is a mid, moderate yellow-green. Relative luminance 0.107; OKLCH L 46.5% C 0.112 H 132.6°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#40661B
RGBrgb(64, 102, 27)
HSLhsl(90, 58%, 25%)
HSVhsv(90, 74%, 40%)
CMYKcmyk(37.3%, 0%, 73.5%, 60%)
CIE-LABlab(39.02, -26.95, 36.37)
CIE-LCHlch(39.02, 45.26, 126.54°)
OKLaboklab(46.52% -0.0757 0.0824)
OKLCHoklch(46.52% 0.112 132.6)
XYZxyz(7.0635, 10.6716, 2.7244)
Luminance0.1067 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40661B #411B66
analogous
#65661B #40661B #1B661B
triadic
#40661B #1B4066 #661B40
tetradic
#40661B #1B6566 #411B66 #661B1B
square
#40661B #1B6566 #411B66 #661B1B
split-complementary
#40661B #1B1B66 #661B65
monochromatic
#0F1806 #22360E #40661B #5E9628 #7DC735

Accessibility & contrast

On white

6.70
#40661B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#40661B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40661B
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40661B#FFFFFF#000000##FFFFFF
##40661B1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5E0F
Deuteranopia (green-blind)
#655B22
Tritanopia (blue-blind)
#416257
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #40661b;
/* rgb */ color: rgb(64, 102, 27);
/* oklch */ color: oklch(46.5% 0.112 132.6);
Tailwind
colors: {
  custom: {
    50: '#78925c',
    500: '#40661b',
    950: '#000000',
  },
}
SCSS
$custom: #40661b;
$custom-light: #78925c;
$custom-dark: #000000;
JSON
{
  "hex": "#40661b",
  "rgb": {
    "r": 64,
    "g": 102,
    "b": 27
  },
  "hsl": {
    "h": 90.4,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.46524,
    "c": 0.11194,
    "h": 132.6
  },
  "luminance": 0.10672
}

Semantic roles & 50–950 ramp

primary
#40661B
secondary
#6F419B
accent
#46E195
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #40661B

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

Preview Lab → · Contrast checker → · Palette generator →

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