#40641B#40641B

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

Color values

HEX#40641B
RGBrgb(64, 100, 27)
HSLhsl(90, 57%, 25%)
HSVhsv(90, 73%, 39%)
CMYKcmyk(36%, 0%, 73%, 60.8%)
CIE-LABlab(38.35, -25.98, 35.67)
CIE-LCHlch(38.35, 44.13, 126.07°)
OKLaboklab(45.97% -0.0731 0.0809)
OKLCHoklch(45.97% 0.109 132.1)
XYZxyz(6.8693, 10.2832, 2.6596)
Luminance0.1028 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40641B #3F1B64
analogous
#64631B #40641B #1C641B
triadic
#40641B #1B4064 #641B40
tetradic
#40641B #1B6463 #3F1B64 #641B1C
square
#40641B #1B6463 #3F1B64 #641B1C
split-complementary
#40641B #1B1C64 #631B64
monochromatic
#0F1807 #21340E #40641B #5F9428 #7EC435

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40641B#FFFFFF#000000##FFFFFF
##40641B1.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)
#685C10
Deuteranopia (green-blind)
#635921
Tritanopia (blue-blind)
#416055
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #40641b;
/* rgb */ color: rgb(64, 100, 27);
/* oklch */ color: oklch(46.0% 0.109 132.1);
Tailwind
colors: {
  custom: {
    50: '#78905c',
    500: '#40641b',
    950: '#000000',
  },
}
SCSS
$custom: #40641b;
$custom-light: #78905c;
$custom-dark: #000000;
JSON
{
  "hex": "#40641b",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 27
  },
  "hsl": {
    "h": 89.589,
    "s": 57.48,
    "l": 24.902
  },
  "oklch": {
    "l": 0.45973,
    "c": 0.10907,
    "h": 132.1
  },
  "luminance": 0.10283
}

Semantic roles & 50–950 ramp

primary
#40641B
secondary
#6D4199
accent
#47E193
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #40641B

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

Preview Lab → · Contrast checker → · Palette generator →

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