#40631B#40631B

#40631B is a mid, moderate yellow-green. Relative luminance 0.101; OKLCH L 45.7% C 0.108 H 131.8°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#40631B
RGBrgb(64, 99, 27)
HSLhsl(89, 57%, 25%)
HSVhsv(89, 73%, 39%)
CMYKcmyk(35.4%, 0%, 72.7%, 61.2%)
CIE-LABlab(38.01, -25.49, 35.32)
CIE-LCHlch(38.01, 43.56, 125.82°)
OKLaboklab(45.7% -0.0718 0.0802)
OKLCHoklch(45.7% 0.108 131.8)
XYZxyz(6.7739, 10.0926, 2.6278)
Luminance0.1009 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40631B #3E1B63
analogous
#63621B #40631B #1C631B
triadic
#40631B #1B4063 #631B40
tetradic
#40631B #1B6362 #3E1B63 #631B1C
square
#40631B #1B6362 #3E1B63 #631B1C
split-complementary
#40631B #1B1C63 #621B63
monochromatic
#101807 #21330E #40631B #5F9328 #7EC335

Accessibility & contrast

On white

6.96
#40631B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#40631B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40631B
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40631B#FFFFFF#000000##FFFFFF
##40631B1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675B10
Deuteranopia (green-blind)
#635921
Tritanopia (blue-blind)
#415F55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #40631b;
/* rgb */ color: rgb(64, 99, 27);
/* oklch */ color: oklch(45.7% 0.108 131.8);
Tailwind
colors: {
  custom: {
    50: '#788f5c',
    500: '#40631b',
    950: '#000000',
  },
}
SCSS
$custom: #40631b;
$custom-light: #788f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#40631b",
  "rgb": {
    "r": 64,
    "g": 99,
    "b": 27
  },
  "hsl": {
    "h": 89.167,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45697,
    "c": 0.10764,
    "h": 131.8
  },
  "luminance": 0.10093
}

Semantic roles & 50–950 ramp

primary
#40631B
secondary
#6C4198
accent
#47E092
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #40631B

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

Preview Lab → · Contrast checker → · Palette generator →

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