#40641C#40641C

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

Color values

HEX#40641C
RGBrgb(64, 100, 28)
HSLhsl(90, 56%, 25%)
HSVhsv(90, 72%, 39%)
CMYKcmyk(36%, 0%, 72%, 60.8%)
CIE-LABlab(38.35, -25.90, 35.24)
CIE-LCHlch(38.35, 43.73, 126.31°)
OKLaboklab(45.98% -0.0728 0.0802)
OKLCHoklch(45.98% 0.108 132.2)
XYZxyz(6.8810, 10.2879, 2.7216)
Luminance0.1029 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40641C #401C64
analogous
#64641C #40641C #1C641C
triadic
#40641C #1C4064 #641C40
tetradic
#40641C #1C6464 #401C64 #641C1C
square
#40641C #1C6464 #401C64 #641C1C
split-complementary
#40641C #1C1C64 #641C64
monochromatic
#0F1807 #21340F #40641C #5F9429 #7DC437

Accessibility & contrast

On white

6.87
#40641C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40641C
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40641C#FFFFFF#000000##FFFFFF
##40641C1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685C12
Deuteranopia (green-blind)
#635922
Tritanopia (blue-blind)
#416055
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #40641c;
/* rgb */ color: rgb(64, 100, 28);
/* oklch */ color: oklch(46.0% 0.108 132.2);
Tailwind
colors: {
  custom: {
    50: '#78905d',
    500: '#40641c',
    950: '#000000',
  },
}
SCSS
$custom: #40641c;
$custom-light: #78905d;
$custom-dark: #000000;
JSON
{
  "hex": "#40641c",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 28
  },
  "hsl": {
    "h": 90,
    "s": 56.25,
    "l": 25.098
  },
  "oklch": {
    "l": 0.45982,
    "c": 0.10829,
    "h": 132.2
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

primary
#40641C
secondary
#6E4399
accent
#48E094
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #40641C

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

Preview Lab → · Contrast checker → · Palette generator →

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